- Install NodeJS and MongoDB
- Fork this project and clone it in your machine
cd
to your project root and runnpm install
- run
mongoimport --db uberForX --collection cops --drop --file ./db/cops.json
to import sample cop information in MongoDB - run
mongoimport --db uberForX --collection requests --drop --file ./db/crime-data.json
to import sample crime information in MongoDB
- Run
node app.js
in your project root folder - Open a demo civilian page by going to http://localhost:8000/civilian.html?userId=YOURNAME
- Open 3 or more cop pages from the imported cop profiles on separate tabs - 01, 02, 03, 04, 05, 06, 07