Skip to content

Shreshth-Malik/Rail-Ticketing-system

Repository files navigation

Travel on "RAILS"

A web application for railway ticket management system with login and signup system, booking tickets, cancelling tickets, view ticket history, updating profile, posting reviews and other integrated features.

Admin credentials

Email: [email protected]

Password: admin

Running the application

clone the repo in your local system

git clone <clone url>
cd Rail-Ticketing-System

Install gems

bundle install

migration

rails db:migrate

get predefined table and users in DB

rails db:seed

run the application

rails s

Running application test

rspec

Application Flows

image

Homepage

image

Signup page with validations

Login Page

image

image

Index page after login

VIEW TRAINS:

image

Display all trains with available seats

image image

Filtered results by station and rating

PROFILE:

image

“Profile” button views the current users profile and gives edit access to the user.

TRIP HISTORY:

image

View tickets booked by the current user. Reviews can only be added to tickets booked by the user. passenger can also view tickets booked by other users

image

“Show” page of the ticket booked by the user.

REVIEWS:

image

“Reviews” page

image

Filtered results

image

“Show review” page

image

Only the author of the review can edit their reviews, apart from admin.

ADMIN :

image

Admin index page has:

View all users

Search Train to get Users

View all trains

View trip history

Profile

Reviews

Logout

View all users :

image

Admin can view all the users

Admin can create new user

Admin can create edit and delete users

View all trains :

image

Admin can view all trains

Admin can add a new train

Admin can edit and destroy a train

Admin can book a ticket

View trip history : image

Admin can view all the history of tickets booked

Admin can cancel a ticket and write review on a ticket

Profile :

image

Admin can see his profile but can edit only some specified fields. Also admin cannot delete his/her own account

Reviews :

image

Admin can write his reviews and can also edit, delete others reviews

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published