Polls the Indian Railways server for updates and sends an email when the status changes
-
Install
redis
if it isn't already. This link has a simple tutorial. -
npm install
once you are in the root directory of the project -
Edit the
config.json
filegmail_username/gmail_password
: Add a gmail username and password to send an emaildestination_email
: Add a destination email to receive the email when the results are outsmtpServer
: Mail Server to useinterval
: Check for the status after every x millisecondspnrs
: Array of PNR numbers to check
-
Set the
log4js
output file -
node index.js
orforever start index.js
####Modules Used