2. Full Signup Flow Explained: From React Frontend to Express/Node Backend & Database

Опубликовано: 03 Июнь 2026
на канале: Austin Huang
10
0

🚀 In this video, we’ll walk through the entire signup flow of a web application — from the React frontend all the way to the Node.js/Express.js backend and SQL database.

🔍 You’ll see step-by-step:

How the frontend collects user input (first name, last name, email, password).

How the register() function sends data to the backend using a POST request.

What happens inside the AuthContext and authAPI.register().

How the backend Express router handles the request.

What the authController does (validation, checking existing users, creating new ones).

How the User model saves the data into the database with password hashing (bcrypt).

And finally, how the JWT token is returned, stored in localStorage, and used to log you in.

💡 By the end, you’ll understand exactly what happens when you click “Sign Up” — covering frontend, backend, authentication, and database integration.