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)
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.
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.