AI SaaS Chat Bot using MERN Stack – Tutorial
Offered By: freeCodeCamp
Course Description
Overview
Syllabus
Introduction, Demo and Overview
Deep Introduction About Our Goals
What is MERN Stack?
Why should we use MERN Stack instead of other stacks?
Technical Introduction On Our Project
Setup Node, Express Starting Project With TypeScript
How to create REST API With NodeJS and Express Practical
Setup MongoDB Database Connection
Get API Keys From OpenAI
Setting Up Routes For Users and Chats
Define Database Models and Schema
Creating our first GET Request to get all users
Creating User Signup POST Route To Store Users
What is a Middleware?
Setting up data validation middleware with express-validator library
Creating User Login Route
Deep dive into User Authentication and Authorization With JWT Access Tokens and HTTP Only Cookies Explanation
Implementing JWT Tokens
Setting HTTP Only Cookies with Cookie-parser
Setting Up Frontend. A React App With Vite and Typescript, Installing Dependencies, Importing Fonts
Creating a customized theme of Material UI
Add Routes with react-router-dom
Design App's Header
Adding Authentication Context Provider
Adding Navigation Links To Header
Designing Login Screen UI
Creating and Sending API Request to backend
Keeping the user logged in: Verify JWT Token Validity and Login the user
Integrating OpenAI to NodeJS application and creating chat completion route request
Designing Chat Page UI on Frontend
Sending API Request For Chat completion
Display Code Blocks in React App
Fetch All Chats Of User On Refresh
Deleting all chats of user
Adding Protected Routes and Logout user request
Creating Signup UI
Design Homepage UI: Adding Typing Animation and Images Rotation and Screenshot of our chat.
Fixing alignment issues
Summary!
Taught by
freeCodeCamp.org
Related Courses
Database EssentialsA Cloud Guru MongoDB Deep Dive
A Cloud Guru Using Python for Data Management and Reporting
A Cloud Guru Amazon DocumentDB Service Introduction
Amazon Web Services via AWS Skill Builder Amazon DocumentDB Service Introduction (French)
Amazon Web Services via AWS Skill Builder