Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

eduardostuart/feed-by-email

Repository files navigation

Deprecated

Please check: https://github.com/eduardostuart/paperboy


just-for-fun™ project.

How it works

Every day at 6 AM - CEST (8 AM - UTC) we clone the git repository defined in the environment variables (OPML_SUBSCRIPTIONS_REPO), fetch all RSS feeds, and check if there is anything new (new content from yesterday). After mapping the feed items + rendering e-mail templates (HTML, text) we send it by e-mail.

Requirements

  1. Node v12.9.0+
  2. Sendgrid account
  3. A git repository including an OPML file
  4. CircleCI account

Usage

node index.js

Environment variables

Key Description Default
SENDGRID_API_KEY Your sendgrid api key
OPML_SUBSCRIPTIONS_REPO Git repository including an OPML file
OPML_SUBSCRIPTIONS_REPO_FILE Name of the opml file subscriptions.xml
EMAIL_FROM Email sender
EMAIL_TO Who will receive the e-mail

Tests

Extras

E-mail template generated on beefree.io.


Thank you. Here is a 🍪