Uber simulation using backend and client separate components.
- Install dependencies using brew
brew install mongodb mysql rabbitmq redis node-
Alternatively use their own website to download relevant .dmg package installers and install them.
-
Make sure all services are started
brew services start mongodb
brew services start mysql
brew services start rabbitmq
brew services start redis- 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- Clone repository
git clone git@github.com:dhruvkakadiya/uber.git- Open new terminal and start backend
cd uber/Uber-Backend && npm install && npm start- Open new terminal and start client
cd uber/Uber-Client && npm install && npm start- Open link in your favorite browser
http://localhost:3000Install Prettier using npm
sudo npm -g install --save-dev --save-exact prettierApply 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