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