Skip to content

The server for the mobile tracker app. Created with Node.JS, Ngrok and MongoDB.

Notifications You must be signed in to change notification settings

ruatapattan/Tracker-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tracker-server

The server for the mobile tracker app. Created with Node.JS, Ngrok and MongoDB.

Installation and Setup

  1. git clone this repository.
  2. npm install
  3. Set up a MongoDB account and cluster if not already (instructions can be found on MongoDB documentation here).
  4. connect to the cluster and copy connection string.
  5. rename .env.example file at the root of the project to .env. Then paste the connection string to MONGODB_URI.
  6. set your PORT and SECRET_KEY in thee .env as needed.
  7. Set up an Ngrok account and follow the instructions to install and set up Ngrok locally.
  8. Start the server by typing npm start.
  9. On the terminal running Ngrok, start Ngrok by typing ngrok http PORT where PORT being your server's port.
  10. 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).

About

The server for the mobile tracker app. Created with Node.JS, Ngrok and MongoDB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published