AWS Lambda function to send a daily newsletter with HackerNews top posts
This repository has been archived on 2026-03-21. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Go 88.8%
  • Dockerfile 11.2%
Find a file
2022-09-09 16:58:43 +02:00
.devcontainer Added devcontainer.json 2022-07-24 09:00:40 +00:00
assets CSS changes 2022-09-09 16:58:43 +02:00
db Minor clean up 2022-07-30 13:35:14 +02:00
hackernews Minor clean up 2022-07-30 13:35:14 +02:00
handler Correction to template method call 2022-07-30 15:15:08 +02:00
mail Minor clean up 2022-07-30 13:35:14 +02:00
.gitignore Added devcontainer.json 2022-07-24 09:00:40 +00:00
credentials.example Moved parameters to standalone fle 2022-07-15 16:18:06 +02:00
go.mod Added basic mailing 2022-07-24 20:56:14 +02:00
go.sum Added basic mailing 2022-07-24 20:56:14 +02:00
LICENSE Initial commit 2022-07-10 18:36:58 +02:00
main.go Added code for AWS Lambda 2022-07-16 16:37:07 +02:00
README.md Code cleaning 2022-07-25 19:05:37 +02:00

hackernewsletter

Command to build the executable for manual upload to Lambda: GOOS=linux CGO_ENABLED=0 go build -o main .

Required variables:

  • FETCH_SIZE: how many news to fetch
  • BATCH_SIZE: batch size for DB write
  • REGION: AWS region
  • SENDER: sender email address
  • RECIPIENT: recipient email address