Skip to content

RentCar a Java masterpiece, delivers an unparalleled car rental experience. For users, it means hassle-free booking and vehicle selection. For administrators, it's a comprehensive tool for efficient management and monitoring of all bookings.

Notifications You must be signed in to change notification settings

Umesh8878/RentCar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RentCar

Rentkar Logo

REST API for Online Cab Booking Application

  • We have created a REST API for an online cab booking application that can be used by customers to login into their profile, update their information and book cabs, by a driver to log in and update their details along with their cab details and accept a ride from the customer. All this is overlooked 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.

  • Customer should be able to view the list of available cabs.

  • Customer should be able to book a cab for the desired location from a specific site.

  • Admin should be able to perform the below operations:

    1. Cab Management 
    2. Driver Management
    3. Booking Management
    

Tech Stack:

  • Java
  • Spring Framework
  • Spring Boot
  • Spring Data JPA
  • Hibernate
  • MySQL
  • Lombok
  • Swagger

Modules:

  • Login Module
  • Admin Module
  • Customer Module
  • Driver Management Module
  • Cab Management Module
  • Booking Management Module

Contributors:

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 config.
    server.port=8080

spring.datasource.url=jdbc:mysql://localhost:3306/rentcar
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=root

Swagger Deployed link

http://localhost:8080/swagger-ui/index.html#/

Sample API Response for User Login

POST localhost:8080/Userlogin/Login

  • Request Body
    {
        "email": "umesh@gmail.com",
        "password": "umesh"
    }
    
    {
        "email": "umesh@gmail.com",
        "password": "umesh"
    }
    

E-R Diagram Of Online Cab Booking Application



Swagger UI


db


Login Controller


login_controller


Admin Controller


admin_controller


Customer Controller


customer_controller


Driver Controller


driver-controller


Cab Controller


cab_controller


TripBooking Controller


trip-controller


Thank You for Visiting

About

RentCar a Java masterpiece, delivers an unparalleled car rental experience. For users, it means hassle-free booking and vehicle selection. For administrators, it's a comprehensive tool for efficient management and monitoring of all bookings.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%