Setup Instructions
-
Build the app
- Run
bundle install
. - Install Node modules:
npm install --dedupe jshint babel babel-cli babel-preset-es2015
- Obtain a Google Maps API key and store it in an environment variable:
export MB_MAPS_API_KEY=<the key>
. - (Optional for development) Obtain a OneBusAway API key and store it in an environment variable:
export MB_OBA_API_KEY=<the key>
. - Run
rake
to build. - You should not see any errors.
- Run
-
Launch the app
- Open public/index.html in a browser.
Other things you can do:
-
Run the Jasmine test in a browser
- Run
rake jasmine
and go to the URL mentioned in the output. - Everything should be green.
- Run
-
Deploy to Cloud Foundry
$ cf login
$ rake cfdeploy
-
Deploy via SCP
- Set the
MB_SCP_DEST
env var, e.gexport MB_SCP_DEST=user@host:path
. - $
rake scpdeploy
- Set the