Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Build and Deploy an AI-Powered Chat App - Vue, Node, TypeScript, OpenAI, Stream and Neon Database

Traversy Media via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
This comprehensive tutorial guides you through building a full-stack AI-powered chat application similar to ChatGPT that maintains conversation context. Develop a Vue.js frontend with Pinia for state management and a Node/Express backend with TypeScript. Integrate Stream for chat functionality and Neon PostgreSQL database to store users and chat logs. The 2-hour 46-minute video covers everything from initial setup to deployment, including TypeScript configuration, API endpoint creation, OpenAI integration, database schema design with Drizzle, user authentication, chat history management, and deploying the backend to Render and frontend to Vercel. Access the complete source code for both backend and frontend components through the provided GitHub repositories.

Syllabus

0:00 - Intro
2:43 - Documentation URLs
4:13 - Backend Init & Install Dependencies
7:56 - Backend TypeScript Config
10:03 - Express Server Setup
13:35 - /register-user Endpoint Setup
17:37 - Initialize Stream With API Keys
21:17 - Register User With Stream Chat
27:41 - /chat Endpoint & Open AI Init
42:49 - Neon PostgreSQL Database Setup
46:00 - Database Config & Neon Adapter
48:46 - Drizzle Schema
54:26 - Drizzle Config
57:31 - Database Migration
59:11 - Save Users In Neon PostgreSQL
1:04:58 - Save Chats In Neon PostgreSQL
1:09:38 - Get User Chat History
1:15:22 - Frontend Init & Install Dependencies
1:19:21 - TailwindCSS Setup & Clean Up
1:22:02 - Router & Page Setup
1:27:54 - Home Form Display
1:31:52 - Reactive Variables & Input Bind
1:37:24 - Pinia Initialization
1:39:19 - Pinia User Store
1:42:57 - Hook Up Home Form
1:50:02 - Header & Leave Chat/Logout
1:57:20 - Pinia Chat Store
2:01:45 - Load Chat History Function/Request
2:08:42 - Load Chat Into UI
2:17:50 - Send Message Function/Request
2:22:21 - Send Message Form
2:29:32 - Get Context Of Chat
2:37:37 - Format Output Text
2:40:52 - Backend API Deploy To Render
2:43:55 - Frontend Deploy To Vercel

Taught by

Traversy Media

Reviews

Start your review of Build and Deploy an AI-Powered Chat App - Vue, Node, TypeScript, OpenAI, Stream and Neon Database

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.