A sample app using the Automatic REST API
A demo version of this application is available at https://tripviewer.herokuapp.com.
One-Click deploy to Heroku
After deploying, you will need to use the Automatic Developer Apps Manager to set your application's redirect URL to match the Heroku app name you selected when deploying. For instance, if you name your app
tripviewer-test in Heroku your redirect URL should be
https://tripviewer-test.herokuapp.com/redirect. Note that the URL must start with
Install node and gulp
brew install node npm install gulp -g
Install required modules
Configure your client id and client secret
Copy the file
config.json and add your Automatic client id and client secret. Alternatively, create environment variables named
cp config-sample.json config.json
Get a mapbox access token and add it to the
Run the app
DEBUG=tripviewer gulp develop
View the app
localhost:3000 in your browser.
Trips are cached in the browser using localstorage. To clear that, open the developer console and type:
Testing locally, skipping OAuth
You can test locally as a logged in user, bypassing OAuth by including an
access_token when running the app.
DEBUG=tripviewer TOKEN=YOUR-AUTOMATIC-ACCESS-TOKEN gulp develop
Please write to email@example.com if you have any questions or need help.
This project is licensed under the terms of the Apache 2.0 license.