Nodejs - Building a Login/Register application from scratch using mysql, express

Опубликовано: 05 Август 2026
на канале: Tech Shaw
75,578
775

Building a web applications in nodejs from scratch that can login or register users using technologies like express, express-session, pug, mysql, bcrypt, util.promisify.

/*
Github link:
https://github.com/SofianChouaib/Logi...
*/
Note:
Don't forget to setup the database in order for this code to work correctly.

All static files are in the public folder
I already put a style.css file
and two images in the img folder

The video is divided into sections:
1- Preview: you see the final product.
2- Preparing from installing dependencies to file structure. and writing our main file app.js the entry of the application.
3- creating some templates : we have two pages index and home - working with pug.
4- setting up the database mysql from connecting to quering the database.
5- Add functionality to the routes. /login , /register.
6- sessions from how to create them and use them to store user information and stay logged in.
Extra info:
operating system: Linux ubuntu.
Text editor: visual studio code.

Music: https://www.bensound.com