This is a FaastRuby lambda function that runs once a day: it scrapes supported websites for new articles and if it finds any, sends an email with links to these articles.
You'll need the faastruby
gem installed. You'll also need Sendgrid account (for sending emails) and some online accessible Redis machine (e.g. Redis Cloud service)
- Clone the repo.
- Change the identifier in
project.yml
. - Copy
secrets.yml.example
tosecrets.yml
and put in the correct values. - Install faastruby cli:
gem install faastruby
- Run the project:
faastruby local
Make sure you have unique project identifier in project.yml
and correct values in secrets.yml
.
- Deploy to staging:
faastruby deploy
- Deploy to production:
faastruby deploy -e prod