Express and MongoDB

Bulding the backend for full-stack CRUD apps.

Placeholder image

Getting started

A series of tutorials leading you through the steps of using Express and MongoDB to build the backend for a basic CRUD app.

Placeholder image
Introduction to Express

Building a basic Express app runnng on a Node.js server that can serve a response to a GET request from a web browser.

View Tutorial
Placeholder image
Registering with MongoDB

Creating a free MongoDB Atlas account and obtaining a connection string for use with your Express apps.

View Tutorial
Placeholder image
Connecting to MongoDB Atlas

Using the provided connection string to connect an Express app to your account on MongoDB Atlas.

View Tutorial
Placeholder image
Installing MongoDB Compass

Downloading and installing the free MongoDB Compass app for interacting with databases and collections.

View Tutorial
Placeholder image
Adding data with Compass

Using the Compass app to create a database and collection in MongoDB Atlas, and to import data from a JSON file.

View Tutorial
Placeholder image
Building a backend CRUD app

Bullding the backend of an app that uses Express routes to perform CRUD operations on data stored on MongoDB Atlas.

View Tutorial
Placeholder image
Adding route controllers

Refactoring the Express routes code to move the route handler functions to a separate controllers file.

View Tutorial
Placeholder image
Adding .env and static files

Adding an .env file to hide your login details. And using middleware to serve static files such as images and stylesheets.

View Tutorial