We have create a REST API for online cab booking application which can be used by customers to login into their profile, update their information and book cabs, by a driver to login and update their details along with their cab details and accept a ride from the customer. All this is over looked by the admin who can also login and update their information as well as access the data in the application. We have implemented data and user validation at every step, for every user.
We have create a REST API for online cab booking application which can be used by customers to login into their profile, update their information and
book cabs, by a driver to login and update their details along with their cab details and accept a ride from the customer. All this is over looked by the
admin who can also login and update their information as well as access the data in the application. We have implemented data and user validation at every
step, for every user.
Tech Stack
Java
Hibernate
Spring Framework
Spring Boot
Spring Data JPA
MySQL
Swagger UI
Maven
Modules
Login Module
Cab Driver Module
Customer Module
Admin Module
Trip Details Module
Features
Data Authentication and Validation for all the users (Admin, Customer and Cab Driver)
Admin Features
Admin can access all the information of customer, cab driver and cab.
Admin can access all Trip Details along with specific trip details using a particular cab or a customer.
Customer Features
Customer can login in the application and update their information using their username and password.
Customer can book trips using pickup location and destination.
Customer can access the bill after the trip is completed.
Cab Driver features
Cab Driver can login in the application and update their information using their username and password.
Cab driver can add and update their cab details.
Cab Driver can mark their availability according to the trips status.
Cab Driver can end the trip and application generates a bill for the trip.
Installation & Run
Before running the API server, you should update the database config inside the application.properties file.
Update the port number, username and password as per your local database configuration.