how-to-build-your-own-uber-for-x-app icon indicating copy to clipboard operation
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

Project Maintained

Code for my blog series:

Tech Stack

HTML5 JavaScript Node.JS Express.JS MongoDB

How to install:

  • Install NodeJS and MongoDB
  • Fork this project and clone it in your machine
  • cd to your project root and run npm 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

Made with love

Did this project help you? I'd love your support 🙏

ko-fi

Buy Me A Coffee