Delivers a nightly email of a movie you can watch
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Procfile
README.md
app.js
package.json
task.js

README.md

send-film

Delivers a nightly email with a movie you can watch.

Usage

git clone git@github.com:scottmotte/send-film-nodejs
cd send-film-nodejs
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:

Task Dyno Size Frequency
node ./task.js 1x Daily

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