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

Spring Boot, MongoDB: JWT Authentication with Spring Security

This tutorial helps you build a Spring Boot Authentication (Login & Registration) & role-based Authorization example with JWT, Spring Security and Spring Data MongoDB. You’ll know:

  • Appropriate Flow for User Signup & User Login with JWT Authentication
  • Spring Boot Application Architecture with Spring Security
  • How to configure Spring Security to work with JWT
  • How to define Data Models and association for Authentication and Authorization
  • Way to use Spring Data MongoDB to interact with MongoDB Database

More Practice:
Spring Boot JWT Authentication with Spring Security, Spring Data JPA & MySQL/PostgreSQL
Spring Boot + GraphQL + MongoDB example with Spring Data & graphql-java
Spring Boot with MongoDB CRUD example using Spring Data

Read More

mongoose-one-to-many-relationship-example-feature-image

MongoDB One-to-Many Relationship tutorial with Mongoose examples

In this tutorial, I will show you one of the most important Relationship in MongoDB that you will use in most database structures: One-to-Many Relationship. You will also know 3 criteria to choose Referencing or Embedding for improving application performance. Then we’re gonna make some MongoDB One-to-Many Relationship examples using Mongoose library.

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

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

Read More

Spring Boot MongoDB CRUD example with Maven

In this tutorial, we’re gonna build a Spring Boot Rest API example that use Spring Data MongoDB & Maven to make CRUD operations with MongoDB database. You’ll know:

  • How to configure Spring Data to work with MongoDB Database
  • How to define MongoDB Data Models and Repository interfaces
  • Way to create Spring Rest Controller to process HTTP requests
  • Way to use Spring Data MongoDB to interact with MongoDB Database

More Practice:
Spring Boot + GraphQL + MongoDB example with Spring Data & graphql-java
Spring Boot, MongoDB: JWT Authentication with Spring Security

Fullstack:
Angular 8 + Spring Boot + MongoDB example
React + Spring Boot + MongoDB example
Vue.js + Spring Boot + MongoDB example

Read More

node-express-mongodb-crud-rest-api-feature-image

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

Express is one of the most popular web frameworks for Node.js that supports routing, middleware, view system… Mongoose is a promise-based Node.js ODM for MongoDB that provides a straight-forward, schema-based solution to model our application data along with built-in type casting, validation, query building, business logic hooks… In this tutorial, I will show you step by step to build Node.js Restful API for CRUD operations using Express, Mongoose with MongoDB database.

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

Fullstack:
– MEVN: Vue.js + Node.js + Express + MongoDB example
– MEAN: Angular + Node.js + Express + MongoDB example
– MERN: React + Node.js + Express + MongoDB example

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

Read More