The server for the mobile tracker app. Created with Node.JS, Ngrok and MongoDB.
git clone
this repository.npm install
- Set up a MongoDB account and cluster if not already (instructions can be found on MongoDB documentation here).
- connect to the cluster and copy connection string.
- rename
.env.example
file at the root of the project to.env
. Then paste the connection string toMONGODB_URI
. - set your
PORT
andSECRET_KEY
in thee .env as needed. - Set up an Ngrok account and follow the instructions to install and set up Ngrok locally.
- Start the server by typing
npm start
. - On the terminal running Ngrok, start Ngrok by typing
ngrok http PORT
where PORT being your server's port. - copy the forwarding url in the terminal to paste in the mobile application's environment (please note that on a free account, the ip address will change every time ngrok is restarted).