Uber
Using MEAN stack and handled high resources using Redis Caching, RabbitMQ clustering, Lazy loading, MongoDB Sharding, Hybrid database, gzip compression and connection pooling etc.
Install / Use
/learn @dhruvkakadiya/UberREADME
Uber Simulation
Uber simulation using backend and client separate components.
Dependencies
Getting started for Mac
- 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: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
