Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
CRUD Towards Restful Api With Node Express and MongoDB
Rating: 4.2 out of 5(150 ratings)
7,500 students

CRUD Towards Restful Api With Node Express and MongoDB

Build your first RESTFUL Api with Node and Express with Model View Controller pattern with Mongo Database
Created byCode Block
Last updated 10/2024
English
English [Auto],

What you'll learn

  • Developing RestApi with Nodejs Express and MongoDB
  • How to Setup MVC(Model view controller)
  • How to store Private data in a secret file
  • POSTMAN Development tool
  • All other lots of useful information

Course content

1 section16 lectures1h 0m total length
  • Introduction1:26

    Explore the basics and ins and outs of building a rest api, organize a modern web app with the mvc pattern, and test with Postman and environment variables.

  • RESTAPI1:57

    Explore how rest api enables software to talk to each other by sending requests and receiving results. Learn the create, read, update, and delete (crud) operations that power web services.

  • Rest Api Practically4:44

    Demonstrate create, read, update, and delete operations on a comment resource using a rest api with Node Express and MongoDB, through a practical YouTube comment walkthrough.

  • Project Setup7:50

    Set up a Node.js and Express project, install Express, Mongoose, and dotenv, and configure environment variables via a .env file to scaffold the server for database integration, CRUD, and MVC.

  • Setup Database in Your Operating System0:02
  • Mongodb setup in windows
  • Connecting to the database2:59

    Set up and run the database server, connect to MongoDB with mongoose, requiring it and calling connect to the database, then verify with a console log and an npm script.

  • MVC pattern Separating routes5:07

    Implement a clean MVC pattern by separating routes into a dedicated routes folder, using Express Router, and exporting route modules to keep server configuration lean.

  • Middleware6:36

    Explore middleware in Express as a function between request and response that enforces authentication, checks login status or tokens, and controls access to data with various middleware types.

  • Understanding and Creating Schema and Models5:28

    Create a Mongoose model by defining a schema with required fields like title, description, and debt, export it, and organize files in a model folder.

  • Postman6:17

    Learn to insert data into a MongoDB database by wiring a user model and schema, handle post requests with Express, parse JSON bodies via middleware, and test endpoints using Postman.

  • CRUD: Creating a User4:18

    Create a new user by sending a title and description to the user model, persist data with mongoose, handle the title is required error, and fetch all users.

  • CRUD: Fetching all Users4:12

    Implement an api endpoint to fetch all users from the database using an async route, a user model find call, and error handling, demonstrated by a get request response.

  • CRUD: Retrieving Individual User3:20

    Learn how to retrieve an individual user by id using a parameter, fetch data from the server, test with postman, and prepare for subsequent update and delete operations.

  • CRUD: Updating a User Data2:49

    Learn to update a user in a Node.js and MongoDB REST API using updateOne, with ID from the request and title and description from the body.

  • CRUD: Deleting a User2:56

    Learn to delete a user in a Node Express MongoDB RESTful API by wiring router.delete with the user id, handling errors, and testing via Postman.

Requirements

  • Little Knowledge of Javascript, Express, Node and MongoDB will Help you a Lot
  • But anyway since it is a FREE course you can Dive in you will still be in Profit (will learn at least something for sure)

Description

I often find while Developing API's There goes a lots of confusing concepts, now in this free tutorial you will learn to Build your first RESTFUL Api with Node and Express with Mongo Database on Model View Controller pattern (Separating routes). so get excited and start learning with this well structured course with well structured videos explaining confusing concepts simply. By the end of this course you will gain a lot of knowledge that you will be able to develop your own RESTAPI so why delay enroll in this free course today and  Start Learning Now.

I often find while Developing API's There goes a lots of confusing concepts, now in this free tutorial you will learn to Build your first RESTFUL Api with Node and Express with Mongo Database on Model View Controller pattern (Separating routes). so get excited and start learning with this well structured course with well structured videos explaining confusing concepts simply. By the end of this course you will gain a lot of knowledge that you will be able to develop your own RESTAPI so why delay enroll in this free course today and  Start Learning Now.

I often find while Developing API's There goes a lots of confusing concepts, now in this free tutorial you will learn to Build your first RESTFUL Api with Node and Express with Mongo Database on Model View Controller pattern (Separating routes). so get excited and start learning with this well structured course with well structured videos explaining confusing concepts simply. By the end of this course you will gain a lot of knowledge that you will be able to develop your own RESTAPI so why delay enroll in this free course today and  Start Learning Now.

I often find while Developing API's There goes a lots of confusing concepts, now in this free tutorial you will learn to Build your first RESTFUL Api with Node and Express with Mongo Database on Model View Controller pattern (Separating routes). so get excited and start learning with this well structured course with well structured videos explaining confusing concepts simply. By the end of this course you will gain a lot of knowledge that you will be able to develop your own RESTAPI so why delay enroll in this free course today and  Start Learning Now.

Who this course is for:

  • Those who want to learn to Develop REST API on their Own