Skip to content

babbarparth/cab-dispatch-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

Cab System Task

This project is a web application developed using JavaScript, React, Node.js, NodeMailer, and Tailwind CSS. It serves as a platform for managing cab bookings, calculating optimal routes, and estimating costs for users' trips. The system ensures efficient cab allocation, scheduling, and tracking, enhancing the overall user experience.

Functionality

Cab Booking Management

•⁠ ⁠Users can book cabs by specifying their email, source, and destination.
•⁠ ⁠The system calculates the shortest possible time from the source to the destination, ensuring efficient routing.
•⁠ ⁠Cab bookings are managed to prevent overlapping start and end times, eliminating scheduling conflicts.

image

Cab Pricing

•⁠ ⁠The system features 5 cabs with distinct pricing structures, defined as price per minute.
•⁠ ⁠Estimated costs are calculated based on the selected cab and the duration of the trip.

image

Tracking and Editing

•⁠ ⁠Administrators have access to cab booking details, facilitating visibility into current and upcoming trips.
•⁠ ⁠Cab details, including pricing and availability, can be viewed and edited as needed.

image

Deployment

•⁠ ⁠Frontend: The frontend of this application is deployed on Vercel. You can access the web application here.
•⁠ ⁠Backend: The backend is deployed on Render(it may take 1-2 minutes to boot the server).

Tech Used:

Frontend/
├── React
├── Tailwind CSS


Backend/
├── Nodejs
├── NodeMailer
├── Express
├── Dijkstra Algorithm (used to calculate the shortest time between source and destination)
├── PostgreSQL

Environment Variables

•⁠ ⁠.env: Configuration file for environment variables.

VITE_APP_BASE_URL="https://scaler-dispatch-system-1.onrender.com"
# VITE_APP_BASE_URL="http://localhost:3000"

Installation

git clone https://github.com/babbarparth/scaler-dispatch-system
cd backend
npm install
npm start
Open New Terminal:
cd ..
cd scaler-dispatch-frontend
npm install
npm run dev

Documentation

Scaler SDE task link:

https://docs.google.com/document/d/1e6riWL2gKXFqv6lhRoKIHr3vtThfdW4rhsPmr5SWmu4/edit

Notion link:

https://alluring-cross-45f.notion.site/Scaler-SDE-Intern-FullStack-Assignment-Cab-System-f8a00680c6b042d780282bf859ec2028

Releases

No releases published

Packages

 
 
 

Contributors

Languages