This project is a Railway Reservation System designed and developed with two distinct modules: Admin and Passenger. The Admin module allows for managing train schedules, seat availability, and passenger records, while the Passenger module enables users to book, view, and cancel reservations.
- Train Schedule Management: Add, update, and delete train schedules.
- Seat Availability: Manage and update seat availability for each train.
- Passenger Records: View and manage passenger booking records.
- Booking Reservations: Search for trains and book seats.
- View Reservations: View existing reservations and their details.
- Cancel Reservations: Cancel existing reservations and update seat availability.
- Frontend: GUI
- Backend: c++
- Database: SQL
-
Clone the Repository
git clone https://github.com/your-repo/railway-reservation-system.git
-
Navigate to the Project Directory
cd railway-reservation-system
-
Install Dependencies
npm install
-
Set Up Environment Variables
- Create a
.env
file in the root directory. - Add the following environment variables:
PORT=3000 MONGODB_URI=your_mongodb_connection_string
- Create a
-
Run the Application
npm start
-
Open in Browser
- Open your web browser and navigate to
http://localhost:3000
- Open your web browser and navigate to
-
Login
- Admin users can log in with their credentials.
-
Manage Train Schedules
- Add new train schedules, update existing ones, or delete them as necessary.
-
Manage Seat Availability
- Update seat availability for each train based on bookings and cancellations.
-
View Passenger Records
- View and manage records of all passengers who have made reservations.
-
Registration and Login
- New users can register an account.
- Existing users can log in with their credentials.
-
Book Reservations
- Search for available trains.
- Book seats on selected trains.
-
View Reservations
- View details of current reservations, including train details and seat numbers.
-
Cancel Reservations
- Cancel reservations and automatically update seat availability.
-
Fork the Repository
- Click the "Fork" button on the repository's GitHub page.
-
Create a New Branch
git checkout -b feature/your-feature-name
-
Make Your Changes
- Implement your feature or fix the bug.
-
Commit Your Changes
git commit -am 'Add new feature'
-
Push to the Branch
git push origin feature/your-feature-name
-
Create a Pull Request
- Go to the repository on GitHub and create a pull request.