Express.js REST API project starter.
git clone https://github.com/cammarb/expressjs-api.git
cd expressjs-api
yarn install
Create a .env file to assign the ATLAS_URI variable the value of your connection string and to the PORT variable the port of your choosing.
Replace the credentials with your database, username and password in the example code:
ATLAS_URI=mongodb+srv://<username>:<password>@<database>.mongodb.net/?retryWrites=true&w=majority
PORT=8800
yarn dev