Skip to content

A Web Development Project for online reservation of train tickets using Card Payment or Mobile Payment (amount will be added to monthly phone bill). Developed using the technologies React JS, Node JS, Express JS, and MongoDB.

License

Notifications You must be signed in to change notification settings

Ranmal-Dewage/Online-Railway-Reservation-System

Repository files navigation

Online Railway Reservation System

Introduction

The “National Rail” Train Ticket Reservation System web application implemented using technologies such as React JS for front-end and Node JS, Express JS which is a Node JS web framework for back-end and MongoDB document database to store the web application data.

The customer/user should register/signup to obtain services from the Train Ticket Reservation system. After successful registration/signup user can search trains by providing departure and destination stations. Then user can click the “Reserve Ticket” button to reserve tickets from that particular train. Then user is prompt to select the payment type either Mobile Payment or Card(Debit/Credit) Payment. If user select the Card Payment then user is redirect to Card Payment Gateway where user need to fill ticketing details and credit/debit card details. After successful reservation, confirmation email is send to the user with the help of Nodemailer module.

If the user select the Mobile Payment method PIN number is send to the user to confirm his Phone Number while redirecting user to Mobile Payment Gateway where user need to fill ticketing details and fill phone owner details and verify the phone by number entering the PIN number received.

Users can enter his/her NIC number and validate with Government Officers Database to check whether he/she is a government officer. In case if a user is government officer he/she will receive 20% discount. After successful reservation, confirmation SMS is send to the user with the help of Twilio module. Twilio is an third party API which handles SMS services. Finally if the user is done with the reservation he/she can logout of the system.

Features of the application

1) System login


DS-2

Figure 1: system login


2) System Registration


DS-3

Figure 2: system registration


3) Home Screen


DS-100

Figure 3: home screen


4) Payment Methods


DS-13

Figure 4: payment methods


5) Card Payment Option


DS-14

Figure 5: card payment option


6) Reservation Details Received to Personal Email (via Card Payment)


DS-17

Figure 6: reservation details received to personal email


7) Mobile Payment Option


DS-24

Figure 7: mobile payment option


8) Pin Verification Message for Mobile Payment


DS-32

Figure 8: pin verification message for mobile payment


9) Reservation Details Received to Mobile Phone (via Mobile Payment)


DS-31

Figure 9: reservation details received to mobile phone


How to Deploy the Application

i) Create a new Google Acoount

Create a new Google Account and take the email address and its password and paste it inside config.json file, in path "..../Online-Railway-Reservation-System/Services/routes/config.json". Also turn on the Less Secure App Access option under Security section of the created google account.

ii) Create Twilio Account

Create a new Twilio Account using above email address and take the Phone Number, Account SID and Auth Token given by twilio and paste it inside config.json file, in path "..../Online-Railway-Reservation-System/Services/routes/config.json".

iii) How to Delpoy

After that follows the instructions mentioned in the How To deploy.txt file.

Developed by RANMAL DEWAGE;

Copyright

(C) 2019 Ranmal Dewage (ranmal.b.dewage@gmail.com)
ranmaldewage.wordpress.com

About

A Web Development Project for online reservation of train tickets using Card Payment or Mobile Payment (amount will be added to monthly phone bill). Developed using the technologies React JS, Node JS, Express JS, and MongoDB.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published