4.59 out of 5
4.59
32 reviews on Udemy

Nodejs REST API with JWT Security & MongoDB – Complete Guide

Build MVC Rest API with Nodejs, Expressjs & MongoDB. Secure REST API with JWT, document API with Swagger. Mongoose Node.
Instructor:
Rapid Dev Pro
201 students enrolled
English [Auto-generated]
REST API in Nodejs, Expressjs with MVC architecture.
Secure REST API with JSONWEBTOKEN ( JWT )
Swagger documentation of your REST API on your API server itself.
REST API Design.
MongoDB Mongoose schema and models.
Create Re-usable services in REST API.
Login/Authenticate API to generate token.
CRUD API in Nodejs
Create, update, delete and find query using mongoose.
Create list pagination API using mongoose pagination query in Nodejs.

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 .

♦  Gulp Tasks: nodemon, watch, gulp-yaml.

♦  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.

Introduction

1
Course Introduction

Installation

1
Nodejs Installation on windows, linux and mac
2
MongoDB installation on windows, linux and mac

Pre-Requisite Knowledge

1
Arrow functions in javascript
2
Promise Vs Async await
3
What are middlewares in Nodejs

Build Rest API

1
Before we start
2
Hello world API in Nodejs
3
What is CORS and how to enable CORS to Nodejs Rest API
4
MongoClient Vs Mongoose
5
Database ( MonogDB ) connectivity in nodejs
6
Installing POSTMAN
7
Create user routes ( POST ) middleware, Add Controller status and Service status
8
Create User Controller and Mongoose Model/Schema of User
9
Create User Service and Mongoose Database Insert Query
10
Introduction to Joi library
11
Apply Joi object shcema validation to POST/CREATE User Route
12
GET User List API with Pagination, Joi validation & Mongoose pagination query
13
GET User Detail API, Joi validation & Mongoose fetch data query
14
PUT/UPDATE User API, Joi validation & Mongoose update query
15
DELETE User API, Joi validation & Mongoose delete query

Secure REST API with JSON WEB TOKEN ( JWT )

1
User authenticate API, Integrate jsonwebtoken library and issue token to user.
2
Protecting all REST API endpoint with jsonwebtoken

API documentation using SWAGGER

1
Introduction to swagger
2
Before we start with GULP task

Before we start with GULP task

3
Integrating swagger in Nodejs and host API doc on our Nodejs REST API server
4
Gulp Watch on swagger: Live edit API documentation

SOURCE CODE

1
SOURCE CODE
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.6
4.6 out of 5
32 Ratings

Detailed Rating

Stars 5
16
Stars 4
12
Stars 3
3
Stars 2
1
Stars 1
0
704c0d12dd51890ebc8c0826ff1de50a
30-Day Money-Back Guarantee

Includes

5 hours on-demand video
2 articles
Full lifetime access
Access on mobile and TV
Certificate of Completion