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.
Email: [email protected]
Password: admin
git clone <clone url>
cd Rail-Ticketing-System
bundle install
rails db:migrate
rails db:seed
rails s
rspec
Signup page with validations
Index page after login
Display all trains with available seats
Filtered results by station and rating
“Profile” button views the current users profile and gives edit access to the user.
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
“Show” page of the ticket booked by the user.
“Reviews” page
Filtered results
“Show review” page
Only the author of the review can edit their reviews, apart from admin.
Admin index page has:
View all users
Search Train to get Users
View all trains
View trip history
Profile
Reviews
Logout
View all users :
Admin can view all the users
Admin can create new user
Admin can create edit and delete users
View all trains :
Admin can view all trains
Admin can add a new train
Admin can edit and destroy a train
Admin can book a ticket
Admin can view all the history of tickets booked
Admin can cancel a ticket and write review on a ticket
Profile :
Admin can see his profile but can edit only some specified fields. Also admin cannot delete his/her own account
Reviews :
Admin can write his reviews and can also edit, delete others reviews