NotifyHub is a robust notification service built with Go. It provides a simple way to send SMS and email notifications to users, leveraging the power of AWS services.
- Send SMS notifications.
- Send Email notifications.
- Easy to set up and use.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Go (version 1.x)
- AWS account with access to SES and SNS services
- Clone the repository to your local machine:
git clone https://github.com/jay-bhogayat/notifyhub.git- Navigate to the project directory:
cd notifyhub- Build the application:
go build -o notifyhub- set environment variables
export PORT=8080
export SENDER_EMAIL=your_email_aws_ses_verified_sender_email- Configure your AWS credentials. Create a file named
credentialsat~/.aws/with the following content:
[default]
aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEYReplace YOUR_ACCESS_KEY and YOUR_SECRET_KEY with your actual AWS access key and secret key.
- Configure your AWS region. Create a file named
configat~/.aws/with the following content:
[default]
region=us-east-1After completing the above steps, start the application by running:
./notifyhubNow, the NotifyHub service is up and running!
docker build -t notifyhub .
docker run --rm -p 8080:8080 --env-file .env -v /home/your_user_name/.aws:/root/.aws/ notifyhub