Overview
The Train Ticket Reservation System is a web application designed for booking train tickets online. It features a modern and responsive design, allowing users to search for trains, view available trains, and book tickets. The system supports user registration, login, and provides an admin dashboard for managing train information and bookings.
Features
-User Registration & Login: Users can create an account, log in, and manage their bookings.
-Train Search: Users can search for trains based on source and destination stations.
-Booking Tickets: Users can select a train, choose seats, and make payments for ticket reservations.
-Admin Dashboard: Admins can manage train schedules, routes, and bookings.
Project Structure
-backend/: Contains server-side code and APIs for handling bookings, user authentication, and database interactions.
-frontend/: Contains client-side code, including HTML, CSS, and JavaScript files for user interfaces.
Setup
1.Clone the Repository bash git clone https://github.com/shreyya18/train-ticket-reservation-system.git
cd train-ticket-reservation-system
2.Backend Setup
-Navigate to the backend/ directory.
-Install dependencies:
bash
npm install
-Start the server:
bash
npm start
-Ensure you have a MySQL database configured and update the database connection details in backend/config/db.js.
3.Frontend Setup
-Navigate to the frontend/ directory.
-Open index.html in your browser or set up a local server for development.
4.Configuration
-Update environment variables and configuration files as needed.
Technologies Used
-Frontend: HTML, CSS, JavaScript
-Backend: Node.js, Express
-Database: MySQL
Contributing
Contributions are welcome! Please fork the repository and submit a pull request with your changes.