Skip to content

Latest commit

 

History

History
86 lines (60 loc) · 1.57 KB

README.md

File metadata and controls

86 lines (60 loc) · 1.57 KB

Uber Simulation

Uber simulation using backend and client separate components.

Dependencies

  1. Mac/Linux/Windows OS
  2. Node
  3. MySQL
  4. MongoDB
  5. Redis
  6. RabbitMQ

Getting started for Mac

  1. Install dependencies using brew
brew install mongodb mysql rabbitmq redis node
  1. Alternatively use their own website to download relevant .dmg package installers and install them.

  2. Make sure all services are started

brew services start mongodb
brew services start mysql
brew services start rabbitmq
brew services start redis
  1. If required services have been started or not, can be verified using command
ps ax | grep mongod
ps ax | grep mysqld
ps ax | grep rabbitmq
ps ax | grep redis
  1. Clone repository
git clone git@github.com:dhruvkakadiya/uber.git
  1. Open new terminal and start backend
cd uber/Uber-Backend && npm install && npm start
  1. Open new terminal and start client
cd uber/Uber-Client && npm install && npm start
  1. Open link in your favorite browser
http://localhost:3000

Auto code formatting with Prettier

Install Prettier using npm

sudo npm -g install --save-dev --save-exact prettier

Apply prettier formatting to JS, MD and CSS files

prettier --write **/*.{js,md,css}

Apply prettier formatting to specific file

prettier <filename_with_path> --write
prettier Uber-Client/app.js --write