how-to-build-your-own-uber-for-x-app
how-to-build-your-own-uber-for-x-app copied to clipboard
Code for my blog post on How to Build Your Own Uber-for-X App
Code for my blog series:
Tech Stack
How to install:
- 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
How to run:
- 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
Did this project help you? I'd love your support 🙏
