Setup your .env file.
cp .env.example .env
.env file with your credentials.
Start the server and ngrok.
node app.js ngrok 3000
Setup SendGrid's Parse API. It will look something like the following. The
flossedtoday.bymail.in should be the same value you set in the
REPLYTO environment variable.
For example, you could use
Visit localhost:3000 and sign up with your email.
The last step is to run
This will send you an email if the time is 16 UTC hour. If you want to change to your current UTC hour, change the
DEFAULT_REMINDER_HOUR_UTC in the
git clone https://github.com/scottmotte/flossedtoday cd flossedtoday heroku create heroku addons:add scheduler heroku addons:add sendgrid heroku addons:add redistogo heroku config:set REPLYTOemail@example.com git push heroku master
Then setup heroku scheduler to run once every hour like the following:
Then setup the SendGrid parse API to use the firstname.lastname@example.org you setup as the REPLYTO.
Type the following to get your sendgrid username and password.
You'r done. Now go and signup and tell others to signup. They will start receiving email messages asking if they flossed today or not. If they reply yes then the reminders will stop. Otherwise, they will be reminded up to 3 more times that day.