The Messaging Groups API (MGAPI) is an internal DoSomething microservice to handle Messaging Group generation & expose their ID's. It creates 2 Groups (Doing and Completed) in Mobile Commons for any given Campaign Run, which we then use to segment our broadcasts per members' activity.
MGAPI is built using Express.
-
Install Node and Heroku toolbelt.
-
Next, fork and clone this repository.
-
Execute
heroku local
from your localmessaging-groups-api
directory to run MGAPI locally.
MGAPI can also be installed via Docker:
git clone
docker-compose up
All apps are executed by Foreman
to handle process management & mimic Heroku.
Nodemon
will autoreload the server when a file changes.
The compose file defines env variables for connection details & network mapping.
©2017 DoSomething.org. Messaging Groups API is free software, and may be redistributed under the terms specified in the LICENSE file. The name and logo for DoSomething.org are trademarks of Do Something, Inc and may not be used without permission.