/node-js-jwt-auth-mongodb

Node.js + MongoDB: User Authentication & Authorization with JWT

Primary LanguageJavaScript

Node.js MongoDB – User Authentication & Authorization example with JWT & Mongoose

User Registration, User Login and Authorization process.

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

jwt-token-authentication-node-js-example-flow

For more detail, please visit:

Node.js + MongoDB: User Authentication & Authorization with JWT

You may need to implement Refresh Token:

jwt-refresh-token-node-js-example-flow

Node.js JWT Refresh Token with MongoDB example

Working with Front-end:

Vue.js JWT Authentication with Vuex and Vue Router

Angular 8 JWT Authentication example

Angular 10 JWT Authentication example

Angular 11 JWT Authentication example

React JWT Authentication & Authorization (without Redux) example

React Redux JWT Authentication & Authorization example

More Practice:

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

Server side Pagination in Node.js with MongoDB and Mongoose

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 + MySQL example

Vue.js + Node.js + Express + PostgreSQL example

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

Angular 8 + Node.js + Express + MySQL example

Angular 8 + Node.js + Express + PostgreSQL example

Angular 8 + Node.js + Express + MongoDB example

Angular 10 + Node.js + Express + MySQL example

Angular 10 + Node.js + Express + PostgreSQL example

Angular 10 + Node.js + Express + MongoDB example

Angular 11 + Node.js Express + MySQL example

Angular 11 + Node.js + Express + PostgreSQL example

Angular 11 + Node.js + Express + MongoDB example

React + Node.js + Express + MySQL example

React + Node.js + Express + PostgreSQL example

React + Node.js + Express + MongoDB example

Integration on same Server/Port:

Integrate Angular 8 with Node.js Express

Integrate Angular 10 with Node.js Express

Integrate React with Node.js Express

Project setup

npm install

Run

node server.js