Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PNR API, Ruby version. With Sinatra and Mongodb.
Ruby
branch: master
Failed to load latest commit information.
config kill -9 and round trip time
models Moved requires to app.rb
public Templates
scripts Removing Redis
tasks Resque jobs
templates Add Google Analytics
views Templates
.gitignore Change to srv from home app path, add gitignore
Capfile Capistrano
Gemfile URL Fix: Fetch proper url for pnr enquiry
Gemfile.lock URL Fix: Fetch proper url for pnr enquiry
README.md Create README.md
Rakefile Mixpanel
app.rb Moved requires to app.rb
config.rb Not sure what
config.ru
indian_railways.sqlite3 Not sure what
start.sh Start scripts
unicorn.rb Simple captcha.

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
Something went wrong with that request. Please try again.