Skip to content

πŸš‚ Railway Management System A simple system for ticket booking, user management, and train schedules. Built with React (front-end) and MySQL (back-end). Perfect for learning CRUD operations! πŸ’»πŸ”§

Notifications You must be signed in to change notification settings

PRATIKSINDHIYA/RailwayManagementSystem

Repository files navigation

Project Overview πŸ“‹

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.

Features 🌟

  1. User Authentication πŸ”’:

    • Users can sign up and log in to the system.
    • Admin can sign up and log in using admin credentials.
  2. Train Search & Booking πŸ”:

    • Users can search for trains by entering source and destination.
    • If available, users can book train tickets.
  3. Ticket Generation 🎫:

    • After booking, the system generates a ticket on a new page displaying the ticket details.
  4. Admin Dashboard πŸ› οΈ:

    • Admin can add new trains, remove existing trains, and update train details.
  5. Database Integration πŸ—ƒοΈ:

    • The application is connected to a database (e.g., MySQL) for storing user information, train details, and ticket bookings.

πŸ“· Screenshots

Here’s what RailwayManagementSystem looks like in action:

Screenshot Screenshot Screenshot Screenshot Screenshot Screenshot Screenshot

Tech Stack πŸ’»

  • 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

Installation & Setup πŸ› οΈ

To get started with the Railway Management System project locally, follow these steps:

1. Clone the Repository πŸ“₯

First, clone this project to your local machine using the following command:

git clone https://github.com/your-username/railway-management-system.git

2. Navigate to Project Directory πŸ—‚οΈ

Once cloned, navigate into the project directory:

cd railway-management-system

3. Frontend Setup (React) πŸš€

Navigate to the client directory and install dependencies:

cd client
npm install

Start the React application:

npm start

The frontend will run at http://localhost:3000.

4. Backend Setup (Node.js) πŸ”§

Navigate to the server directory:

cd server
npm install

Run the backend using nodemon:

nodemon index.js

The backend will run at http://localhost:5000 (or any other port you have configured).

5. Database Configuration πŸ—„οΈ

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.


Usage πŸ“

User Login & Booking:

  • 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 Login & Train Management:

  • Admin can log in with admin credentials.
  • Admin can add new trains, remove existing trains, or update train details.

Acknowledgments πŸ™

  • React for building the frontend.
  • Node.js and Express.js for the backend development.
  • MySQL for database management.
  • JWT for secure authentication.

Contact πŸ“¬


About

πŸš‚ Railway Management System A simple system for ticket booking, user management, and train schedules. Built with React (front-end) and MySQL (back-end). Perfect for learning CRUD operations! πŸ’»πŸ”§

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published