The Cab System is a web application that facilitates the booking of cabs and provides users with the shortest time and estimated cost for their trips. This README provides an overview of the project, its features, and how to set it up for use.
The Cab System is a web application that enables users to book cabs and calculates the shortest possible time and estimated cost for their trips.
- Users can book cabs by providing their email, pickup location, and drop location.
- The system calculates the shortest possible time from pickup location to drop location, considering multiple routes.
- The system manages a fleet of 5 cabs with different pricing, ensuring that no two cabs have overlapping start and end times.
- Users receive an estimated cost for their cab rides based on the selected cab and the time taken to reach the drop location.
- Users receive email notifications at the time of booking with all the details.
- Users can view and track their cab bookings within the system.
- The application is designed to be responsive, adapting to different screen sizes and devices.
- The application assumes that only administrators will access it.
- The application is designed for use by administrators; no user login/signup pages are required.
To set up and run the Cab System web application, follow these steps:
-
Clone the project from the repository:
git clone https://github.com/varisha-025/Scaler_Cab_System.git
-
Navigate to the project directory:
cd Scaler_Cab_System
-
Navigate to the server directory:
cd server
-
Install the required dependencies:
npm install
-
Start the application:
npm run dev
-
The server should now be running on your local server
http://localhost:3001
.
-
Navigate to the client directory:
cd client
-
Install the required dependencies:
npm install
-
Start the application:
npm start
-
The client should now be running on your local server. Open your web browser and access it at
http://localhost:3000
.
The Cab System web application is built using the following technologies:
-
Frontend:
- React: A JavaScript library for building user interfaces.
- Axios: A promise-based HTTP client for making requests to the backend API.
- Tailwind CSS: A CSS framework
-
Backend:
- Node.js: A JavaScript runtime for the server.
- Express: A web application framework for Node.js.
- MongoDB: A NoSQL database for data storage.
Happy Cab Booking!