Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build and Secure Restful APIs with Nodejs and MongoDB
Rating: 3.8 out of 5(42 ratings)
3,203 students

Build and Secure Restful APIs with Nodejs and MongoDB

Learn how to build, secure and deploy RESTful Webservices with Node, Express, Mongoose, and PassportJs
Created byHaider Malik
Last updated 1/2020
English

What you'll learn

  • Learn how to build CRUD APIs with Nodejs and Mongoose
  • Learn how to write documentation for the APIs using Swagger
  • Learn how to add JWT authentication with ExpressJs and Passportjs
  • Learn how to implement role based authentication
  • Deploy Nodejs App to Heroku

Course content

8 sections44 lectures1h 59m total length
  • Project Starter Template0:08
  • Initial Setup for Nodejs and Express Server1:06

    We will learn how to create the Node.Js server from scratch and adding ES6 support through babel-cli

  • Connecting Nodejs Application with MongoDB using Mongoose1:26

    Mongoose provides a straight-forward, schema-based solution to model your application data. It includes built-in typecasting, validation, query building, business logic hooks and more, out of the box. You will learn how to integrate MongoDB using mongoose package.

  • Create Nodejs Project Structure Feature by Feature3:35

    In this lesson, you will how to the design the project structure for our demo application. You will learn the best practices to design the app structure

  • Create a Model in Mongoose1:48

    Models are fancy constructors compiled from Schema definitions. An instance of a model is called a document. Models are responsible for creating and reading documents from the underlying MongoDB database

  • Add Validations for Request Params in NodeJs using Joi package4:16

    Imagine you run facebook and you want visitors to sign up on the website with real names and not something like l337_p@nda in the first name field. How would you define the limitations of what can be inputted and validate it against the set rules?

    This is joi, joi allows you to create blueprints or schemas for JavaScript objects (an object that stores information) to ensure validation of key information.

Requirements

  • Basic Knowledge of Javascript is required
  • Basic Knowledge of Nodejs is required

Description

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

RESTful Web APIs allow developers to create modern applications by leveraging the data on the Internet. Since JavaScript is the language of the web, building APIs using Node.js provides a seamless development experience on both the front end and the back end.

In this course, we will build APIs for Music application. There are two roles(Artist, User) in our demo application.An artist can create/edit/delete the song. A user can view all the songs. A user can also create and view the songs playlist.

You will learn how to create the Apis for users, and artists. I will teach you how to add JWT authentication in Nodejs. I will also show you how to add role-based authentication in real-world application

You'll learn to:

  • how to setup the ES6 server with Nodejs
  • Learn how to build CRUD(Create, Read, Update and Delete) APIs with Nodejs and Mongoose
  • Learn how to write documentation for the APIs using Swagger
  • Learn how to add JWT authentication with ExpressJs
  • Learn how to implement role based authentication
  • Deploy NodeJs API to Heroku

This course is for you if:

You’re a back-end developer who is used to working with frameworks like ASP.NET, Rails, Django, etc. You want to add Node.js to your toolbox.

You’re a front-end developer and want to transition to full-stack development.

You’ve tried other Node.js tutorials and found them to be too slow, out-of-date, and boring!

Having Node.js on your resume helps you find more jobs and make more money.

Who this course is for:

  • Anyone that wants to learn how to build & deploy REST apis with Node, Express & MongoDB
  • You’re a back-end developer familiar with frameworks like ASPNET, Rails, Django, etc. Now, you want to add Node to your toolbox