Clone the repository and build the project:
# Clone the repository
# Navigate to the project directory
# Build the project
Create a .env
file in the root directory with the following contents:
- DATABASE_URL=
- SMTP_USERNAME=
- SMTP_PASSWORD=
- SMTP_SERVER=
- SMTP_PORT=
- SENDER_EMAIL=
Replace the values with your actual database credentials and SMTP settings.
Run the program with:
Run tests with:
After starting the service, it will be listening for requests to handle newsletter subscriptions and sending emails.
Contributions to the newsletter service are welcome!
To contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.