This starter code is made to pair with the Node/Express/MongoDb video tutorial series, for the MERN Web Development Course
- Run the
npm install
command from the integrated Visual Studio Code terminal to install dependencies frompackage.json
- Create a
.env
file in the root directory of the project (same level asindex.js
) - Add a variable to the
.env
file:PORT
(set equal to a port number of your choosing e.g 3010) - Add another variable to the
.env
file:CONNECTION_STRING
(set equal to the MongoDb Atlas connection string from your database deployment) - Test the server with the command
npm start