Deploying an app with Node.js and MongoDB

Overview

In this tutorial, the reader will learn how to deploy a Node.js and MongoDB application to Heroku and how to deploy the database to MongoDB Atlas. I'll start by introducing the reader to Heroku and MongoDB Atlas. Then they will clone a Node.js and MongoDB application from the "CRUD with Node.js and MongoDB" tutorial, modify the MongoDB connection string, and deploy it to Heroku.

Outline

  • Introduction
  • What is Heroku?
  • What is MongoDB Atlas?
  • Prerequisites
  • Setup MongoDB Atlas account
  • Create a new Atlas project
  • Add connection string
  • Create Env File
  • Install Heroku CLI
  • Configure package.json
  • Deploy App
Select a repo