Giter VIP home page Giter VIP logo

shubhamgarg7239 / busreservationsystem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yendasivakumar/busreservationsystem

1.0 0.0 0.0 298 KB

Bus Reservation System App. In this project we have implemented the functionalities of the real time reservation system where user can create a account,and can reserve seats by travel details and can give Feedback.And Admin can manipulate the buses and route details as he wants

Home Page: https://drive.google.com/file/d/1GB9ipLJ5KYehKpMvrfXTJay5DDQPmFkT/view?usp=sharing

Java 100.00%
jpa-hibernate swagger-ui lombok-maven java mavan spring springboot mysql

busreservationsystem's Introduction

REST API for a Bus Reservation System Portal

Description

  • We developed this REST API for a Bus reservation application. This API performs all the fundamental CRUD operations of any Bus reservation platform with user validation at every step.
  • This project is developed by team of 4 Back-end Developers during project week in Masai School. Link

Techstack

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

Modules

  • User Module
  • Bus Module
  • Route Module
  • Reservation Module
  • Feedback Module

ER Diagram

Following ER diagram indicates the database tables and thier interaction which we are using. Untitled Workspace

Features

  • User and Admin authentication & validation with session uuid having.
  • Admin Features:
    • Administrator Role of the entire application
    • Only registered admins with valid session token can add/update/delete driver or customer from main database
    • Admin can access the details of different users, buses and routes.
  • Customer Features:
    • Registering themselves with application, and logging in to get the valid session token
    • Viewing list of available bus and booking a reservatioon.
    • Only logged in users can update his/her reservation, profile updation and other features.

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=8888

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

API Module Endpoints

User Module

  • POST /login : Logging in user with valid mobile number & password
  • POST /logout : Logging out user based on session token
  • POST /BRSystem/user : To register user himself
  • POST /feedback/userId/busId : To give feedback by user based on userId and busId
  • GET /bus/busId : Getting the details of the bus by its id
  • GET /buses : Getting All the buses
  • GET /busByType/busType : Getting details of bus by its type
  • GET /reservation/userId : To do reservation by user by his/her id
  • GET /reservation/reservationId : Getting the reservation details by reservation id
  • PUT /reservation/userId : Update reservation details by user id
  • PUT /BRSystem/user : Update user details by himself
  • PUT /feedback : To update feedback given by user.
  • DELETE /reservation/userId/reservationId : Cancel reservation by reservationId, userId

busreservationsystem's People

Contributors

vamsi4612 avatar yendasivakumar avatar vineet221713 avatar shubhamgarg7239 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.