- Run
npm installto install the required Node packages. - Copy the example.env file into the config folder in the root directory of the project and rename to config.env.
- In the config.env file, enter your port number for local hosting after PORT =
- Navigate to your MongoDB Atlas database connection and find your Database Connection String
- Paste after DB_STRING = (Note: ensure you update the
passwordto your database password) - Save the config.env file.
- Execute
npm startto start the server. If you prefer, you can also usenodemon startinstead to automatically reflect any changes.