🚆 Railway Management System
A Railway Management System built with Spring Boot and Java for train reservations, scheduling, and ticket management. This system provides authentication, train searching, and a basic web interface for both passengers and administrators.
📑 Table of Contents
- Features
- Tech Stack
- Installation & Setup
- Usage
- License
- Contact
✨ Features
- Train Schedule Management: Search for trains by source and destination, view train details.
- Ticket Booking (Basic): Book tickets for available trains (basic booking logic).
- User Authentication: Role-based access and login system (via Spring Security).
- Simple Admin Management: Add/edit/delete trains, basic management features.
- Database Integration: Persistent train and ticket data with JPA/Hibernate.
- Basic Frontend: HTML/JavaScript interface for listing trains and booking tickets.
🛠 Tech Stack
| Technology | Description |
|---|
| Java 17+ | Backend language |
| Spring Boot | Backend framework |
| Spring Security | Authentication |
| Hibernate & JPA | ORM for database interactions |
| MySQL/PostgreSQL | Database management |
| Maven | Build automation |
| Thymeleaf | Server-side HTML templates |
| HTML/JavaScript | Basic frontend |
⚙️ Installation & Setup
Prerequisites
- Java 17+
- Spring Boot
- Maven
- MySQL or PostgreSQL
Steps
-
Clone the Repository
git clone https://github.com/DevSharma03/Railway-Management-System.git
cd Railway-Management-System
-
Configure the Database
Edit src/main/resources/application.properties with your DB credentials:
spring.datasource.url=jdbc:mysql://localhost:3306/railway_db
spring.datasource.username=root
spring.datasource.password=yourpassword
-
Build & Run
mvn clean install
mvn spring-boot:run
-
Access the Application
🎯 Usage
- Passenger: Search trains, book tickets, view schedules.
- Admin: Manage trains and schedules.
📜 License
This project is licensed under the MIT License.
📬 Contact
For inquiries, reach out at work.devashishsharma09@gmail.com
Or open an issue on GitHub.
📬 Contact
For any inquiries, feel free to reach out via work.devashishsharma09@gmail.com or open an issue.
Let me know if you need any more changes! 🚀😊