Welcome to the Railway Reservation System, a console-based Java application designed to facilitate user registration, login, train search, ticket booking, and viewing booking history. This application provides an intuitive way for users to manage their train journeys seamlessly.
- User Registration: New users can register easily with a username, password, and name.
- User Login: Existing users can log in to access their accounts.
- Search Trains: Users can search for trains based on origin and destination.
- Book Tickets: Users can book tickets for selected trains.
- View Booking History: Users can view their past bookings.
- Java: The core programming language for the application.
- Console I/O: All interactions are done through the terminal for simplicity.
- Make sure you have Java Development Kit (JDK) installed on your machine.
-
Clone this repository:
git clone https://github.com/Madhur6/IRCTC.git
-
Navigate to the project directory:
cd IRCTC -
Compile the Java files:
javac *.java(i.e. javac IRCTC.java) -
Run the application:
java IRCTC
- Register a New User: Choose option
2from the main menu to create a new account. - Log In: Choose option
1to log in with your credentials. - Search for Trains: After logging in, you can search for trains by entering the origin and destination.
- Book Tickets: Select a train and specify the number of tickets to book.
- View Booking History: Check your past bookings at any time.
- IRCTC.java: Main application logic and user flow.
- Admin: Admin.
- Coach: Train coach tiers.
- Train.java: Represents train details and availability.
- Booking.java: Manages ticket booking details.
Contributions are welcome(Specially from Group 10)! If you have suggestions or improvements, please feel free to submit a pull request or create an issue.
This project is licensed under the MIT License.
If you have any questions, feel free to reach out:
- Madhur Pandey: madhurp090@gmail.com
- GitHub: Madhur
- Thanks to the open-source community for providing inspiration and resources!
- Special thanks to Java Documentation for invaluable help in development.
Happy Coding! 🎉