Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Create a RESTful API from scratch using Node.js, Express, MongoDB, and Mongoose in this comprehensive tutorial video. Dive into the fundamentals of REST API development, starting with project setup and Git initialization. Learn to build a basic Express server, implement environment variables, and create routes. Master controller creation, handle body data, and implement error handling. Explore MongoDB integration with Mongoose, including database creation and model definition. Develop essential CRUD operations for managing goals, covering GET, CREATE, UPDATE, and DELETE functionalities. Follow along with detailed explanations and step-by-step guidance to build a fully functional backend API for your MERN stack applications.
Syllabus
- Intro.
- How a REST API Works.
- Set up the Project Folder.
- Initialize GIT & Commit.
- Basic Express Server.
- Environment Variables.
- First Route.
- Routes File.
- Creating a Controller.
- Connecting Controller Functions.
- Accepting Body Data.
- Error & Exception Handling.
- Express Async Handler.
- Create MongoDB Database.
- Connect with Mongoose.
- Create a Model.
- Get Goals.
- Create Goal.
- Update Goal.
- Delete Goal.
Taught by
Traversy Media