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

Read More


Angular 8 JWT Authentication with HttpInterceptor and Router

In this tutorial, we’re gonna build an Angular 8 Application (with HttpInterceptor, Router & Form Validation) that supports JWT Authentication. I will show you:

  • JWT Authentication Flow for User Signup & User Login
  • Project Structure for Angular 8 Authentication with HttpInterceptor, Router
  • How to implement HttpInterceptor
  • Creating Login, Signup Components with Form Validation
  • Angular Components for accessing protected Resources
  • How to add a dynamic Navigation Bar to Angular App
  • Working with Browser Session Storage

It sounds fantastic! Let’s explore together.

Related Posts:
In-depth Introduction to JWT-JSON Web Token

Angular 8 + Spring Boot: JWT Authentication with Spring Security example
Node.js Express + Angular 8: JWT Authentication & Authorization example

Read More

Angular 8 + Spring Boot: JWT Authentication with Spring Security example

In this tutorial, I will show you how to build a full stack Angular 8 + Spring Boot JWT Authentication example. The back-end server uses Spring Boot with Spring Security for JWT authentication and Spring Data JPA for interacting with database. The front-end will be built using Angular 8 with HttpInterceptor & Form validation.

Let’s get started.

Related Post: Angular 8 + Spring Boot example: Build a CRUD App

Read More


Node.js Rest APIs example with Express, Sequelize & MySQL

Express is one of the most popular web frameworks for Node.js that supports routing, middleware, view system… Sequelize is a promise-based Node.js ORM that supports the dialects for Postgres, MySQL, SQL Server… In this tutorial, I will show you step by step to build Node.js Restful CRUD API using Express, Sequelize with MySQL database.

You should install MySQL in your machine first. The installation instructions can be found at Official MySQL installation manual.

Related Posts:
Build Node.js Rest APIs with Express & MySQL (without Sequelize)
Deploying/Hosting Node.js app on Heroku with MySQL database

Vue.js + Node.js + Express + MySQL example
Vue.js + Node.js + Express + MongoDB example
Angular 8 + Node.js Express + MySQL example

Security: Node.js – JWT Authentication & Authorization example

Read More