This repo contains a Boilerplate for Express and Mongodb. You can follow the steps below to leverage the boilerplate and save your precious time. :)
Clone the repo, run npm install
, make a .env
file containing PORT
,MONGO_CONNECTION_STRING
. Your final .env
should look like this.
PORT=3000
MONGO_CONNECTION_STRING="<Your mongo connection string>"