
Learn to build a full stack API with Express, connect to a Sequelize database, and secure credentials using environment files while implementing token-based login with hashed passwords.
Install Norges on your Windows machine, set up Visual Studio Code, and configure MySQL Workbench and Postman (or a REST client extension) to design and test the API.
Set up a Node.js project with Express, install nodemon, body-parser, and cookie-parser, create index.js, and implement registration and login routes with express-validator.
Explore database design for a React and Express app by building a MySQL database named YouTube with a registration table and backend endpoints for registration and login.
Develop a registration controller to handle post requests and read the username and password from the request body. Validate input and return appropriate status codes and error messages.
Set up the Sequelize ORM by building a DB helper to configure and authenticate a MySQL connection, export the engine, test with a simple query, and prepare models integration.
Build a Sequelize-based registration model in Express, update the registration table with username, password, and salt, and add a create method to insert users.
Learn to implement a registration api by passing username and password from the controller, encrypting the password, invoking the model, and handling success and error responses.
Fix the registration route by exporting the router correctly, handling a post request with a JSON body (username and password), and confirming successful database insertion on port 8082.
Create a login endpoint using a post route, validate username and password with Express Validator, hash and compare credentials, and handle login flow in the controller.
validate the username and password against the database, encrypt the password, and generate a simple token (jwt) to return with a 200 response or a 401 unauthorized on failure.
Fix a database issue by widening the password field and validating user data in an Express.js API. Learn table creation, registration and login endpoints, MVC structure, and token-based authentication.
Create a fresh React app and explore the boilerplate in Visual Studio Code. Set up the front-end project with npm and create-react-app, run npm start, and inspect the project structure.
Learn to implement routing in a React app using a BrowserRouter, define routes for home, register, and log in, and wire components via links in a menu bar.
Develop a registration form in a React class-based component, manage username, email, password, and confirm password in state, wire onChange handlers, and prepare data submission to the Node.js API.
Handle a register form submission by preventing the default action, validating passwords, and sending data to a backend with fetch or axios. Manage responses using then and catch.
Set up a post request to the backend register endpoint on port 8082, send username and password in a JSON body with content-type application/json, and note the cross-origin issue.
Resolve the CORS error by configuring the backend to allow cross-origin requests, including handling preflight requests and enabling the frontend registration flow.
design a login page in a react app by adapting the registration form, using use state to manage username and password, and implementing handle submit and handle change.
Learn to implement login API integration in a React app by sending username and password with fetch, posting JSON data to the backend, handling responses, and managing errors.
Learn to use axios to send a login post request in a react app, including installation, import, sending username and password, and handling response data and headers.
Incorporate Bootstrap into a full stack app to design a login page and responsive navbar, using form controls, container layout, and navbar collapse for mobile.
Designs a Bootstrap registration page using a responsive two-column grid, with a left form and a right image, leveraging container, row, and column classes.
Are you planning to start Node.js API development? Then you’re in the right place.
This course is designed for beginners who want to learn **RESTful API development using Node.js and Express.js**. If you have a basic understanding of JavaScript and Node.js, this course will help you build a strong foundation in backend development.
Throughout the course, we will build a complete **user registration and login application** from scratch. Every feature is implemented step by step, and I explain the common errors that occur during development and how to fix them. The goal is not only to write code, but also to understand why each part of the application is built the way it is.
By the end of the course, you will be able to set up a Node.js application from scratch, create database tables, securely manage database credentials, generate password salts, and implement industry-standard user registration and login functionality. We will use **Sequelize ORM** to connect and interact with a **MySQL database**.
I encourage you to ask questions whenever you get stuck—whether it’s during development environment setup or while working through the course. I’m here to help you become comfortable with Node.js backend development.
### Prerequisites
* Basic knowledge of JavaScript
* Basic understanding of Node.js
* Node.js and a code editor installed on your machine
I hope you enjoy the course, and I look forward to seeing you inside!