0.0.1 • Published 11 years ago

send-film v0.0.1

Weekly downloads
5
License
-
Repository
-
Last release
11 years ago

send-film

Delivers a nightly email with a movie you can watch.

Usage

heroku create
heroku addons:add scheduler:standard
heroku addons:add sendgrid:starter
heroku config:set TO=you@youremail.com
git push heroku master

Lastly, setup a recurring task each morning to send you the email. Use heroku scheduler for this. Add the job to look like this:

TaskDyno SizeFrequency
node ./task.js1xDaily

Dev Setup

touch .env

Place the following in your .env file:

SENDGRID_USERNAME=sendgrid_username
SENDGRID_PASSWORD=sendgrid_password
TO=your@email.com

Now you can run:

node ./task.js