This is a web application for booking train tickets built with Spring Boot for the backend, React.js for the frontend, and Tailwind CSS for styling.
- Users can register and login.
- Users can search for trains and book tickets.
- Users can view their booked tickets.
- Users cannot cancel tickets once booked.
- Admin can login.
- Admin can add new trains.
- Admin can remove trains.
- Admin can edit train details.
- Admin can view all bookings.
- Spring Boot: Java-based framework for the backend.
- React.js: JavaScript library for building user interfaces.
- Tailwind CSS: Utility-first CSS framework for styling.
- MySQL: Relational database management system.
-
Install MySQL if not already installed. Refer to MySQL Installation Guide for instructions.
-
Create a new database named
fsd
. -
Update the database configuration in the
application.properties
file located in thebackend/src/main/resources
directory:
spring.datasource.url=jdbc:mysql://localhost:3306/fsd
spring.datasource.username=your_mysql_username
spring.datasource.password=your_mysql_password