Automatic SMS Example App
This is a node.js app that allows you to set rules for sending SMS notifications about starting or finishing a trip with Automatic. For example: text your significant other when you leave work on a weekday evening.
This app demonstrates the use of the Automatic Websocket API.
A demo version of this application is available at http://automaticsms.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
sms-test in Heroku your redirect URL should be
https://sms-test.herokuapp.com/redirect. Note that the URLs must start with
Install node and gulp
brew install node npm install gulp -g
Install required packages from NPM:
Configure your client id and client secret
Copy the file
config.json and add your configuration variables for Automatic, Mapbox and Twilio.
Run the app locally, with debug logging
DEBUG=automaticsms gulp develop
View the app
localhost:3000 in your browser.
Testing locally, skipping OAuth
You can test locally as a logged in user, bypassing the OAuth login by including a
USER_ID when running the app.
TOKEN=<YOUR-AUTOMATIC-ACCESS-TOKEN> USER_ID=<YOUR-AUTOMATIC-USER-ID> DEBUG=automaticsms gulp develop
This app uses SASS and React which are compiled by gulp into the
The app is can be deployed on Heroku with MongoLab and RedisCloud addons.
Add all the items in config-sample.json as heroku environment variables as well as a
NODE_ENV variable set to
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.