JWT implementation with Refresh Token in Node.js example | MongoDB

In previous post, we’ve known how to build Token based Authentication & Authorization with Node.js, JWT and MongoDB. This tutorial will continue to make JWT Refresh Token in the Node.js Express Application. You can know how to expire the JWT, then renew the Access Token with Refresh Token.

Related Posts:
Node.js, Express & MongoDb: Build a CRUD Rest Api example
How to upload/store images in MongoDB using Node.js, Express & Multer
– Using MySQL/PostgreSQL instead: JWT Refresh Token implementation in Node.js example

Associations:
MongoDB One-to-One relationship with Mongoose 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

The code in this post bases on previous article that you need to read first:
Node.js + MongoDB: User Authentication & Authorization with JWT

Read More

mongodb-many-to-many-mongoose-example-feature-image

MongoDB Many-to-Many Relationship with Mongoose examples

In this tutorial, I will show you how to deal with MongoDB Many to Many Relationship which is an important and complicated Relationship that you will use in most database structures. Then we’re gonna use Mongoose library to make a MongoDB Many to Many Relationship example.

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

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

Read More

angular-10-mongodb-node-js-express-crud-feature-image

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

In this tutorial, I will show you how to make Angular 10 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:
Using Angular 11
Using Angular 12
Using Angular 13
Using Angular 14

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

Serverless with Firebase:
Angular 10 Firebase CRUD Realtime Database
Angular 10 Firestore CRUD with AngularFireStore

Security:
MEAN stack Authentication: Login & Registration with Angular 10 example

Read More