Node.js REST API with Express & MongoDB - Solid Architecture

RapidDev Pro, Full Stack Developer & Tech Entrepreneur

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
25 Lessons (3h 9m)
    • 1. Introduction

      4:22
    • 2. Install Nodejs and npm

      0:38
    • 3. Install MongoDB

      0:59
    • 4. Tools used in this course

      0:23
    • 5. Object and Array destructuring

      6:03
    • 6. Spread Operator

      9:04
    • 7. Promise Vs Async await

      13:33
    • 8. API Overview

      5:08
    • 9. Setting Up Node.js Server

      6:15
    • 10. Express Middlewares

      9:08
    • 11. MongoDB Connectivity

      4:52
    • 12. Product Model & Schema-Mongoose

      2:40
    • 13. POST API: Create Product

      21:57
    • 14. Mongoose toObject Transform

      5:51
    • 15. Create Product API Schema

      6:12
    • 16. API Schema Validation Middleware

      14:54
    • 17. GET API: List Product with Pagination

      14:32
    • 18. GET API: Product by Id

      8:32
    • 19. PUT API: Update Product

      7:03
    • 20. DELETE API: Remove Product by Id

      3:07
    • 21. POST API: User SIgnup

      12:46
    • 22. POST API: User Login and JsonWebToken ( JWT )

      10:13
    • 23. Token Validation Middleware and Protect Product Routes with JWT

      9:51
    • 24. Swagger API Documentation

      10:16
    • 25. Source code

      0:24

About This Class

Build MVC Rest API with Node.js, Express.js & MongoDB. Secure REST API with JWT, document API with Swagger, Mongoose ODM

Want to learn how to build REST API with Nodejs, ExpressJs and MongoDB ?? If yes, then this course is for you. In this course you will learn how to create MVC pattern REST API architecture in Nodejs, communication with MongoDB using Mongoose, Securing API with JWT ( jsonwebtoken) and documenting API using popular open source tool called swagger.

We are in the world of REST API architecture because of boom in the micro-services. Every company is moving toward REST API architecture from traditional monolithic server architecture.

What is REST API ?

A RESTful API is an application program interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data. 

Why MVC Pattern in REST API ?

MVC pattern/architecture allows you to decouple your code into various modules such as controller, services, models and routes so that you can scale your code without any burden of code maintenance as all the nodes in the MVC architecture works in sync and as expected.

You will learning the following things in this course:

♦  REST API in Nodejs and ExpressJs.

♦  MVC Architecture in REST API Nodejs.

♦  Interaction with MongoDB in nodejs using mongoose.

♦  Create, update, delete and find query using mongoose.

♦  Create list pagination API using mongoose pagination query in Nodejs.

♦  Secure REST API with JSONWEBTOKEN ( JWT ).

♦  Use tools such as POSTMAN to test API.

♦  Write middleware in Nodejs .

♦  Joi object schema validation in Nodejs .

♦  Host swagger documentation of your REST API on your API server itself.

♦  Create Re-usable services in REST API.

♦  Enable Cross-Origin Resource Sharing (CORS) in Nodejs REST API.

♦  Mongoose schema and models.

♦  HTTP request basics: Request body, path params, query params and headers.

♦  CRUD API in Nodejs.

♦  Login/Authenticate API to generate token.

♦  REST API Design.

♦  Node and NPM.

♦  and more.