Sends a copy of the most upvoted recent posts from Hacker News as an email. Has to be deployed as a CRON job.
When the script is run, it fetches the 30 best stories from https://news.ycombinator.com/best and composes a nicely styled email out of it.
The email address to send to is hardcoded in main.tsx, and has to be adjusted. Also RESEND_API_KEY
has to be an environment variable that contains an API key for resend.com.
-
Requirements
You need Node.js installed on your system.
-
Install packages
Run
npm install
to install all neccesary packages. -
Run the application
Start the script by running
npm start
.