PNR API, Ruby version. With Sinatra and Mongodb.
Ruby Shell
Latest commit 6c10131 Jun 30, 2014 @alagu Create README.md
Permalink
Failed to load latest commit information.
config kill -9 and round trip time Mar 11, 2013
models Moved requires to app.rb Feb 13, 2014
public Templates Feb 19, 2013
scripts
tasks Resque jobs Mar 11, 2013
templates
views
.gitignore
Capfile Capistrano Feb 19, 2013
Gemfile
Gemfile.lock URL Fix: Fetch proper url for pnr enquiry Feb 13, 2014
README.md
Rakefile Mixpanel Mar 11, 2013
app.rb Moved requires to app.rb Feb 13, 2014
config.rb
config.ru
indian_railways.sqlite3 Not sure what Feb 19, 2013
start.sh Start scripts Feb 19, 2013
unicorn.rb

README.md

PNRAPI Ruby

PNR API is a service that helps you to fetch PNR Numbers from Indian Railways programmatically.

Requirements

  • Basic *nix system
  • Ruby 1.9.3
  • Mongodb

Install

$ git clone https://github.com/alagu/pnrapi-ruby.git
$ ruby script/mongodump.rb

Change the unicorn.rb file with the correct APP_ROOT

$ bundle install
$ mkdir -p tmp/pids tmp/sockets logs
$ unicorn -c unicorn.rb -D
$ tail -f logs/*.log