This project covers the development of a CRUD (Create, Read, Update, Delete) API using Node.js, Express, and MongoDB. Below is a breakdown of the tutorial along with the associated code snippets.
The project introduces the prerequisites for building a CRUD API with Node.js, Express, and MongoDB. It covers setting up the development environment, including installing Visual Studio Code and Node.js, creating a project folder, and initializing a package.json
file.
- Setting Up Development Environment
- Installing and Configuring Express
- Testing APIs with Thunder CLI and Insomnia
- Setting Up Git Bash and Nodemon
- Connecting MongoDB Atlas to Node.js Backend
- Defining Schema and Model with Mongoose
- Sending and Receiving JSON Data
- Handling Errors and Saving Data
- Retrieving Specific Products
- Creating Edit and Update API
- Updating and Deleting Products
- Organizing API Routes
- Separating Controller Logic
- Cleaning Up Index.js