Skip to content

bezkoder/node-js-express-login-mongodb

Repository files navigation

Node.js Express Login and Registration example with MongoDB and JWT

  • Appropriate Flow for User Login and Registration with JWT and Cookies
  • Node.js Express Architecture with CORS, Authentication & Authorization middlewares & Sequelize
  • How to configure Express routes to work with JWT
  • How to define Data Models and association for Authentication and Authorization
  • Way to use Sequelize to interact with MySQL Database

User Registration, User Login and Authorization process.

The diagram shows flow of how we implement User Registration, User Login and Authorization process.

node-js-express-login-example-mongodb-flow

For more detail, please visit:

Node.js Express Login and Registration example with MongoDB and JWT

Working with Front-end:

Angular 12 / Angular 13 / Angular 14 / Angular 15 / Angular 16 / Angular 17

React / React Redux

More Practice:

Node.js, Express & MongoDb: Build a CRUD Rest Api example

Server side Pagination in Node.js with MongoDB and Mongoose

Node.js Express File Upload Rest API example

Node.js + MongoDB: User Authentication & Authorization with JWT (using HTTP headers)

Associations:

MongoDB One-to-One relationship tutorial with Mongoose examples

MongoDB One-to-Many Relationship tutorial with Mongoose examples

MongoDB Many-to-Many Relationship with Mongoose examples

Fullstack:

Vue.js + Node.js + Express + MongoDB example

Angular 8 + Node.js + Express + MongoDB example

Angular 10 + Node.js + Express + MongoDB example

Angular 11 + Node.js + Express + MongoDB example

Angular 12 + Node.js + Express + MongoDB example

Angular 13 + Node.js + Express + MongoDB example

Angular 14 + Node.js + Express + MongoDB example

Angular 15 + Node.js + Express + MongoDB example

Angular 16 + Node.js + Express + MongoDB example

Angular 17 + Node.js + Express + MongoDB example

React + Node.js + Express + MongoDB example

Integration on same Server/Port:

Integrate Vue with Node.js Express

Integrate Angular with Node.js Express

Integrate React with Node.js Express

Project setup

npm install

Run

node server.js

Releases

No releases published

Packages

No packages published