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

In this tutorial, we’re gonna build a Node.js & MongoDB example that supports User Authentication (Registation, Login) & Authorization with JSONWebToken (JWT). You’ll know:

  • Appropriate Flow for User Signup & User Login with JWT Authentication
  • Node.js Express Architecture with CORS, Authenticaton & Authorization middlewares, Mongoose ODM
  • Way to configure Express routes to work with JWT
  • How to define Mongoose Models for Authentication and Authorization
  • How to use Mongoose to interact with MongoDB Database

Related Posts:
Node.js & MongoDB: JWT Refresh Token example
MERN stack Authentication example
MEAN stack Authentication with Angular 8 example
MEAN stack Authentication with Angular 10 example
MEAN stack Authentication with Angular 11 example
MEAN stack Authentication with Angular 12 example
Node.js, Express & MongoDb: Build a CRUD Rest Api example
MongoDB One-to-Many Relationship tutorial with Mongoose examples
MongoDB Many-to-Many Relationship with Mongoose examples

Deployment: Docker Compose: Node.js Express and MongoDB example

Read More

mongoose-one-to-one-relationship-example-nodejs-mongodb-feature-image

MongoDB One-to-One relationship tutorial with Mongoose example

Relationship in NoSQL database is not the same as traditional SQL database. That’s why you need to implement basic types of associations (such as One-to-One, One-to-Many, Many-to-Many) yourself. In this tutorial, I will show you 2 ways to make One-to-One Relationships, then we will implement Mongoose One-to-One relationship example in a Nodejs & MongoDB project.

Related Posts:
MongoDB One-to-Many Relationship tutorial with Mongoose examples
MongoDB Many-to-Many Relationship with Mongoose examples

Node.js, Express & MongoDb: Build a CRUD Rest Api example
Node.js + MongoDB: User Authentication & Authorization with JWT

Read More

react-node-express-mongodb-mern-stack-feature-image

React.js + Node.js + Express + MongoDB example: MERN stack CRUD App

In this tutorial, we’re gonna build a MERN stack (React.js + Node.js + Express + MongoDB) CRUD Application example. The back-end server uses Node.js + Express for REST APIs, front-end side is a React client with React Router, Axios & Bootstrap.

Related Posts:
MERN stack Authentication & Authorization
React File Upload with Axios and Progress Bar to Rest API

Run both projects in one place:
How to integrate React with Node.js Express on same Server/Port

Dockerize: Docker Compose: React, Node.js Express, MongoDB example

Read More

Angular 8 + MongoDB example with Node.js Express: Build CRUD App

In this tutorial, I will show you how to make Angular 8 connect to MongoDB with Node.js Express. We’re gonna build a full-stack (MEAN stack) CRUD Application in which, the back-end server uses Node.js + Express for REST APIs, front-end side is an Angular App with HTTPClient.

Newer versions:
Angular 10 + MongoDB example with Node.js Express: CRUD App
Angular 11 + MongoDB example with Node.js Express: CRUD App
Angular 12 + MongoDB example with Node.js Express: CRUD App

Related Posts:
MEAN stack Authentication & Authorization with Angular 8 example
Angular 8 upload file/image to Node.js Server example

Run both projects in one place:
How to Integrate Angular 8 with Node.js Restful Services

Read More