Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 889 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 889 Bytes

Setup Instructions

  1. Build the app

    1. Run bundle install.
    2. Install Node modules: npm install --dedupe jshint babel babel-cli babel-preset-es2015
    3. Obtain a Google Maps API key and store it in an environment variable: export MB_MAPS_API_KEY=<the key>.
    4. (Optional for development) Obtain a OneBusAway API key and store it in an environment variable: export MB_OBA_API_KEY=<the key>.
    5. Run rake to build.
    6. You should not see any errors.
  2. Launch the app

    1. Open public/index.html in a browser.

Other things you can do:

  • Run the Jasmine test in a browser

    1. Run rake jasmine and go to the URL mentioned in the output.
    2. Everything should be green.
  • Deploy to Cloud Foundry

    1. $ cf login
    2. $ rake cfdeploy
  • Deploy via SCP

    1. Set the MB_SCP_DEST env var, e.g export MB_SCP_DEST=user@host:path.
    2. $ rake scpdeploy