An email subscription service that monitors RSS feeds and sends email notifications to subscribers when new posts are published.
- ๐ Automatically checks RSS feeds for new content
- ๐ง Sends personalized emails to subscribers when new posts are found
- ๐ REST API for subscribing/unsubscribing users
- ๐ Sends a welcome email to new subscribers
- ๐ฎ Uses Mailgun API for reliable email delivery
- โ๏ธ Fully configurable via environment variables
-
Clone the repository:
git clone <repository-url> cd ak-mailer
-
Install dependencies:
npm install
-
Create a
.envfile based on.env.example:cp .env.example .env
-
Configure your environment variables
To start the production server:
npm startThe admin endpoints can be enabled by setting the ADMIN_PASSWORD environment variable in your .env file.
Example usage with curl:
# Get database content
curl -H "Authorization: your-admin-password" http://localhost:3001/admin/db
# Send a test email to a subscriber
curl -H "Authorization: your-admin-password" http://localhost:3001/admin/test/[email protected]Replace your-admin-password with the actual password set in your ADMIN_PASSWORD environment variable.