Tag users and send group notifications with one request. Twilio alerts everyone that matches the specified tags.
This project is build using Express web framework and depends on MongoDB.
-
First clone this repository and
cd
into it.$ git clone [email protected]:TwilioDevEd/notifier-node.git $ cd notifier-node
-
Copy the sample configuration file and edit it to match your configuration.
$ cp .env.example .env
You can find your
TWILIO_ACCOUNT_SID
andTWILIO_AUTH_TOKEN
in your Twilio Account Settings. You will also need aTWILIO_NUMBER
, which you may find here.You can find your
TWILIO_NOTIFICATION_SERVICE_SID
in you console under services.Run
source .env
to export the environment variables. -
Make sure the tests succeed.
$ npm test
-
Start the server.
$ npm start
-
Check it out at http://localhost:3000.
-
Text your Twilio number "help me". e.g.
Help me
-
Receive a message with instructions.
-
Text your Twilio number the name of the movie you to be subscribed. e.g.
Rogue One
Note: The available movies are "Han Solo Spinoff", "Rogue One", and "Episode VII".
-
Receive a confirmation message.
-
Text your Twilio number with "usub movie name". e.g.
unsub Rogue One
-
Receive a confirmation message.
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.