The Railway Management System is a web application designed to help users and administrators manage train bookings, view train details, and much more. The system supports two key roles:
- Admin: Can add, edit, and remove train details.
- User: Can search for trains between a source and destination and book tickets.
-
User Authentication π:
- Users can sign up and log in to the system.
- Admin can sign up and log in using admin credentials.
-
Train Search & Booking π:
- Users can search for trains by entering source and destination.
- If available, users can book train tickets.
-
Ticket Generation π«:
- After booking, the system generates a ticket on a new page displaying the ticket details.
-
Admin Dashboard π οΈ:
- Admin can add new trains, remove existing trains, and update train details.
-
Database Integration ποΈ:
- The application is connected to a database (e.g., MySQL) for storing user information, train details, and ticket bookings.
Hereβs what RailwayManagementSystem looks like in action:
- Frontend: HTML, CSS, JavaScript, React
- Backend: Node.js, Express.js
- Database: MySQL (or any other relational database)
- Authentication: JWT (JSON Web Tokens) for secure login and sign-up
To get started with the Railway Management System project locally, follow these steps:
First, clone this project to your local machine using the following command:
git clone https://github.com/your-username/railway-management-system.gitOnce cloned, navigate into the project directory:
cd railway-management-systemNavigate to the client directory and install dependencies:
cd client
npm installStart the React application:
npm startThe frontend will run at http://localhost:3000.
Navigate to the server directory:
cd server
npm installRun the backend using nodemon:
nodemon index.jsThe backend will run at http://localhost:5000 (or any other port you have configured).
Set up your MySQL (or any other relational database) locally. Make sure your database is running, and modify the database connection details in the backend (server/config/db.js) to match your local database credentials.
- Sign up and log in as a user.
- After logging in, you can search for trains by entering the source and destination.
- If trains are available, you can book tickets.
- Admin can log in with admin credentials.
- Admin can add new trains, remove existing trains, or update train details.
- React for building the frontend.
- Node.js and Express.js for the backend development.
- MySQL for database management.
- JWT for secure authentication.
- Your Name: Pratik Sindhiya
- Email: [email protected]
- GitHub Profile: github.com/PRATIKSINDHIYA
- LinkedIn: linkedin.com/in/pratiksindhiya






