https://github.com/booleanhunter/how-to-build-your-own-uber-for-x-app
Code for my blog post on How to Build Your Own Uber-for-X App
https://github.com/booleanhunter/how-to-build-your-own-uber-for-x-app
express html5 javascript learning-by-doing mongodb mongoose nodejs project socket-io tutorial tutorial-code
Last synced: 15 days ago
JSON representation
Code for my blog post on How to Build Your Own Uber-for-X App
- Host: GitHub
- URL: https://github.com/booleanhunter/how-to-build-your-own-uber-for-x-app
- Owner: booleanhunter
- Created: 2014-08-15T04:06:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-03-12T06:31:31.000Z (about 3 years ago)
- Last Synced: 2025-03-30T11:08:54.553Z (22 days ago)
- Topics: express, html5, javascript, learning-by-doing, mongodb, mongoose, nodejs, project, socket-io, tutorial, tutorial-code
- Language: HTML
- Homepage: https://booleanhunter.com/how-to-build-your-own-uber-for-x-app/
- Size: 3.72 MB
- Stars: 236
- Watchers: 5
- Forks: 212
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README


# Code for my blog series:
- [How to build your own Uber-for-X App](https://www.ashwinhariharan.tech/blog/how-to-build-your-own-uber-for-x-app/)
- [How to build your own Uber-for-X App - Part 2](https://www.ashwinhariharan.tech/blog/how-to-build-your-own-uber-for-x-app-part-2/)## Tech Stack
    
## How to install:
- Install [NodeJS](https://nodejs.org/en/) and [MongoDB](https://docs.mongodb.com/)
- 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](http://localhost:8000/cop.html?userId=01), [02](http://localhost:8000/cop.html?userId=02), [03](http://localhost:8000/cop.html?userId=03), [04](http://localhost:8000/cop.html?userId=04), [05](http://localhost:8000/cop.html?userId=05), [06](http://localhost:8000/cop.html?userId=06), [07](http://localhost:8000/cop.html?userId=07)-----

## Did this project help you? I'd love your support 🙏
[](https://ko-fi.com/I2I2131HO)