8000 GitHub - magizh/my_bart: Simple rails app using Bart API SFO - make your own app to find trains
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

magizh/my_bart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails app using Bart API

 This is a simple rails app that uses Bart API and gives you the list of trains to workplace/home
 depending on the time of the day. Fork the app and make your own customizations :) 

Snapshot

The app uses

  • The app uses Bart API to get real time schedules
  • It uses the nokogiri gem to parse the XML
  • Bootstrap to make it responsive :)

Deploy your app on Cloud Foundry

git clone git@github.com:<your_name>/my_bart.git my_bart
  • Get the API keys from here
  • Customize your routes in the home_controller.rb file

After doing the necessary changes

bundle install; bundle package;
rake assets:precompile
vmc push --runtime=ruby19
Would you like to deploy from the current directory? [Yn]: 
Application Name: magizhtransit
Detected a Rails Application, is this correct? [Yn]: 
Application Deployed URL [magizhtransit.cloudfoundry.com]: 
Memory reservation (128M, 256M, 512M, 1G, 2G) [256M]: 
How many instances? [1]: 
Bind existing services to 'magizhtransit'? [yN]: 
Create services to bind to 'magizhtransit'? [yN]: 
Would you like to save this configuration? [yN]: 
Creating Application: OK
Uploading Application:
  Checking for available resources: OK
  Processing resources: OK
  Packing application: OK
  Uploading (365K): OK   
Push Status: OK
Staging Application 'magizhtransit': OK                                         
Starting Application 'magizhtransit': OK 

Yeah !

About

Simple rails app using Bart API SFO - make your own app to find trains

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0