This application is an SMS-based journal for people who are looking to express gratitude in their day to day lives.
First, install all dependencies using npm install
.
Use the sample-env
file as the basis for environment variables. There are many strategies for including environment variables in your project - for our purposes, this app uses node-foreman to add environment variables into the local application.
To use node-foreman
, install via npm install -g foreman
, then run it using nf start
. Make sure your database is running, and that a twilio webhook is set up to handle user responses.
This system has three major components:
The worker reads from the database, and uses the collection of users to send a daily text message to users.
The web server performs read and write operations against the database. It's also the connection to the Twilio webhook, and thus receives text messages from the user.
Stores information, as databases tend to do.