Nodejs REST API with JWT Security & MongoDB – Complete Guide
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.
Build Rest API
Secure REST API with JSON WEB TOKEN ( JWT )
API documentation using SWAGGER
Before we start with GULP task