Modeify is an open-source platform for multimodal commuter engagement. Utilizing the latest advances in open transportation technology, Modeify uses personalized outreach to promote commuter behavior change and improve outcomes for travelers, employers, and transportation demand management (TDM) providers.
Development quick start
Clone to your local directory to begin.
$ git clone firstname.lastname@example.org:conveyal/modeify.git $ cd modeify
- Node.js version
- R5 url endpoint
- Mapbox access token and a map id
- Mapzen Search api key
An example configuration can be found in
configurations/default. Copy that directory and edit the
env.yml files. Add your
- Mapzen Search
- R5 url endpoint to
- Auth0 logo and primary color in
lock > themein
If you have configuration specific images run
./bin/set-deployment ../path/to/your/configuration/directory to use them.
If Modeify is configured correctly (above) then you will be able to run with
npm start. This will
- Install all of the dependencies.
- Run the node server with automatic restarts using nodemon. It watches for changes in the
- Build the
client/manager-appand rebuilds on changes.
To point it at a different configuration directory run:
$ npm start -- ../path/to/configuration/directory
This repository is setup to deploy automatically to Heroku. All commits to the dev branch will be deployed to staging and all commits to master will be deployed to production. Pull requests will create review apps that run on Heroku Hobby Dynos. The review apps will build their client side files locally while the staging and production apps retrieve their assets from AWS and they need to be deployed manually.
Heroku will run the node server with
$ node lib/server.js
Heroku Environment Variables
All variables in
env.yml must be set manually as Heroku environment variables. They can be set via the command line with:
$ heroku config:set VARIABLE_NAME=value --app heroku-app-name
settings.yml is retrieved from Heroku apps via the
MODEIFY_CONFIG environment variable. To set that value you can run the
$ ./bin/push-settings-to-heroku ../path/to/configuration/settings.yml heroku-app-name
AWS Assets Deployment
Deployment is done with
mastarm. See mastarm#deploy for more info on configuration.
$ mastarm deploy --minify --env production --config ../configurations/modeify