Using MongoDB with Node.js

What you'll learn

In this project learn how to use Mongo with NodeJS while building a base API. You’ll first create a base project fully integrating Mongo with NodeJS. Then you’ll learn all the different functions available in Mongo to add, edit, update, delete and search through the database with JavaScript functions in your backend.

Table of contents

Setup
15m
  • Set up your local environment for projects. We'll walk you through everything you need to know, including how to install and configure your environment to be able to complete all of the tasks.
Add MongoDB & Mongoose connection
30m
  • In this module we'll create a connection inside our server to MongoDB leveraging simplified code with Mongoose.
Schema Creation & First Route
1h
  • In this module we'll add our model and create our schema, then create an initial route to add new items to our database.
Basic CRUD Endpoints
1h
  • In this module we'll add the endpoints for pulling a list of items and a single items adding first the controller and then the route for each endpoint.
Changing Data with CRUD
1h
  • In this module we'll add the endpoints for updating and deleting items first the controller and then the route for each endpoint.

About the author

Ready to upskill? Get started