Skip to content

Koscee/smartRails-web

Repository files navigation

This is an online railway reservation system project developed with React, Next.js and deployed to the cloud through Vercel.

Click here smart-rails-web to view the deployed version.

Admin login details (email: [email protected]   password: 123456)

Getting Started

To run the project on your local machine;

First, install the package dependencies:

npm install

make sure the smart-rails-server is running on your local machine (at port 8000)

Then, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

System Design

Each registered user have a role which represent their level of access to resources in the system. These roles include USER, ADMIN, and SUPER_ADMIN.

  • USER - This is the default role, users with this role can search for trains available to travel on a given date, view their profile details, manage passengers,view tickets, book tickets, and cancel their bookings.

  • ADMIN - This is the "basic admin" role, users with this role have more access than users with the USER role. In addition to the operations of the USER role, they can also view all stations, routes, trains, train service types, schedules, bookings, and passengers in the system.

  • SUPER_ADMIN - This is the role with the highest privilege, users with this role have access to all resources in the system. They can perform all CRUD operations on every modules in the system. Their duty is to manage and maintain the entire system.

Modules Overview

system-modules

Usecase Diagram

usecase-diagram

Workflow

system-workflow

Pages Screenshots

Admin Module:

  • Dashboard

    admin-dashboard

  • Station Management

    stations-list-page

    update-station-page

  • Train Management

    trains-list-page

    update-train-page

  • Schedule Management

    train-schedules-list-page

  • Booking Management

    bookings-list-page

    booking-details-page

User Module:

  • Home Page

    home-page

  • Register

    register-page

  • Login

    login-page

  • Search Train

    search-train-page

  • Passenger Management

    passenger-management-page

  • Book Ticket

    book-ticket-page

    payment-page

    payment-success-page

    ticket-display-page

  • View Bookings

    user-bookings-page

  • Cancel Booking

    cancel-booking-page

About

A website project for online railway reservation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published