A web application for booking train tickets. The application allows users to search for train schedules, book tickets, and manage reservations. Also present is an admin panel for an admin to add, modify and remove trains details.
- Search for trains based on departure and arrival locations.
- View train schedules and availability.
- Book train tickets.
- Manage and cancel reservations.
- Admin dashboard to manage trains and schedules.
-
Clone the repository:
bash git clone https://github.com/SupratitDatta/Rail-Ease.git
-
Navigate to the project directory:
bash cd rail-ease
-
Set up your web server (e.g., XAMPP, WAMP) and place the project directory in the server's root directory.
-
Create a MySQL database named Railway and create all the required tables to set up the necessary features and authentications.
-
Configure the database connection in all the php files :
<?php $servername = "localhost"; $username = "your-username"; $password = "your-password"; $dbname = "train_booking_db"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } ?>
-
Start your web server and navigate to your localhost server in your browser.
-
User:
- Search for trains by entering departure and arrival locations.
- Select a train and book a ticket.
- View and manage your reservations.
-
Admin:
- Access the admin dashboard to manage trains and schedules.
- Add, update, or delete train details.
- HTML5
- CSS
- PHP
- MySQL
- JavaScript
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (git checkout -b feature-branch).
- Make your changes.
- Commit your changes (git commit -am 'Add new feature').
- Push to the branch (git push origin feature-branch).
- Open a pull request.
This project is created by Supratit Datta in 2023. All rights reserved.
For any inquiries, please contact:
- Email ID - [email protected]
- GitHub - https://github.com/SupratitDatta