Angular 12 + Node.js: Login and Registration example with JWT

In this tutorial, we will learn how to build a full stack Node.js Express + Angular 12 JWT Authentication (Login, Registration) and Role based Authorization example. The back-end server uses Node.js Express with jsonwebtoken for Rest APIs, Sequelize for interacting with MySQL database. The front-end will be created with Angular 12, HttpInterceptor and Router. We’ll also perform Form validation on UI.

MEAN stack instead:
Angular 12 + Node + MongoDB: Login and Registration example

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

Fullstack:
Angular + Node.js Express + MySQL example
Angular + Node.js Express + PostgreSQL example
Angular + Node.js Express + MongoDB example
Angular + Node.js Express: File Upload example

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

Read More

angular-12-node-express-postgresql-example-crud-feature-image

Angular 12 + Node.js Express + PostgreSQL example: CRUD App

In this tutorial, I will show you how to build a full-stack (Angular 12 + Node.js + Express + PostgreSQL) example with a CRUD Application. The back-end server uses Node.js + Express for REST APIs, front-end side is an Angular App with HTTPClient.

Related Posts:
Angular + Node.js Express: JWT Authentication & Authorization example
Server side Pagination with Node.js and Angular
File Upload using Angular and Node.js

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

Serverless with Firebase:
Angular Firebase CRUD Realtime DB | AngularFireDatabase
Angular Firestore CRUD example | AngularFireStore

Read More

Node.js Express, Angular 10: JWT Authentication & Authorization example

In this tutorial, we will learn how to build a full stack Node.js Express + Angular 10 Authentication example. The back-end server uses Node.js Express with jsonwebtoken for JWT authentication & Authorization, Sequelize for interacting with MySQL database. The front-end will be created with Angular 10 with HttpInterceptor and Router. We’ll also perform Form validation on UI.

Newer versions:
Node.js Express, Angular 11: JWT Authentication & Authorization example
Node.js Express, Angular 12: JWT Authentication & Authorization example

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

Fullstack:
Angular 10 + Node.js Express + MySQL example: CRUD App
Angular 10 + Node.js Express + PostgreSQL example: CRUD App
Angular 10 + Node.js Express + MongoDB example: CRUD App
Angular 10 + Node.js Express: File Upload example

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

Read More

JWT Refresh Token implementation in Node.js example

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

Using MongoDB instead:
JWT Refresh Token implementation in Node.js and MongoDB

Related Posts:
Node.js Rest APIs example with Express, Sequelize & MySQL
Node.js Express File Upload Rest API example using Multer

Associations:
Sequelize One-to-Many Association example
Sequelize Many-to-Many Association example

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

Read More