To use your local mongodb server, set MONGODB_URI
environment variable.
To install a local mongodb server instance.
- Install MongoDB
- Run MongoDB with
mongod
- Set MONGODB_URI environment variable,
set MONGODB_URI=mongodb://127.0.0.1 # local mongodb server
You can connect to the online database by setting the appropriate environment variables as follows.
set MONGODB_URI=mongodb://heroku_mf5mtwtk:dj45qp59p8436qm44v9dgd67ve@ds137230.mlab.com:37230/heroku_mf5mtwtk
To run the NodeJS express application.
- Install the dependencies
npm install
- Start the server
npm start