Skip to content

Manya7547/RailExpressCOEN275

 
 

Repository files navigation

Rail Express: Train booking System Web Application

This comprehensive full-stack application utilizes Java Spring Boot and ReactJS, powered by Node v12.0.0 and npm v7.19.0. The integration of Google OAuth ensures robust authentication, complemented by efficient SQL data management through Workbench. The outcome is an intuitive and user-friendly interface that streamlines the Train booking and management process. Elevate your travel experience with this seamlessly integrated solution.


Installation and Setup Instructions

Clone down this repository. You will need node and npm installed globally on your machine.

Installation:

Install npm modules:

npm install

Installing the database component for React:

npm install react-data-table-component

To Start Server:

npm start

To Visit App:

localhost:3000

In case of any errors (ensure the number of vulnerabilities is less than 10 - sometimes running twice helps!):

npm audit fix --force

Note: Landing page is home.jsx. Add all routes in it.


Queries Creation

Run the queries in insert_query.txt to create Trains and seats for passengers. Modify this as per Trains and requirements.


Creating google authentication

  1. Login to Google Cloud Console.
  2. Go to APIs & Services, and click on Credentials in the left pane.
  3. Click on Create Credentials and select OAuth Client ID request.
  4. Select the application type as Web Application and give it a name.
  5. Provide Authorized JavaScript origins as:
  6. Provide Authorized redirect URIs as:

Frontend Web Pages

Train Search Page

Alt text


Google Authentication for Secure Login

Alt text


Seat Selection

  • Black: Booked
  • Green: Selected
  • Gray: Available Alt text

Payment Page

Alt text


Train Seat Booking Confirmation

Alt text


Manage Bookings

Alt text


Admin Pages

Alt text Alt text Alt text


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 60.4%
  • Java 31.3%
  • CSS 6.3%
  • HTML 2.0%