notifyHub

command module
v0.0.0-...-cbc3f18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ci workflow Go Report Card

NotifyHub

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.

Features

  • Send SMS notifications.
  • Send Email notifications.
  • Easy to set up and use.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites
  • Go (version 1.x)
  • AWS account with access to SES and SNS services
Installation
  1. Clone the repository to your local machine:
git clone https://github.com/jay-bhogayat/notifyhub.git
  1. Navigate to the project directory:
cd notifyhub
  1. Build the application:
go build -o notifyhub
Configuration
  1. set environment variables
export PORT=8080
export SENDER_EMAIL=your_email_aws_ses_verified_sender_email
  1. Configure your AWS credentials. Create a file named credentials at ~/.aws/ with the following content:
[default]
aws_access_key_id = YOUR_ACCESS_KEY
aws_secret_access_key = YOUR_SECRET_KEY

Replace YOUR_ACCESS_KEY and YOUR_SECRET_KEY with your actual AWS access key and secret key.

  1. Configure your AWS region. Create a file named config at ~/.aws/ with the following content:
[default]
region=us-east-1
Running the Application

After completing the above steps, start the application by running:

./notifyhub

Now, the NotifyHub service is up and running!

run with docker
docker build -t notifyhub .
docker run --rm -p 8080:8080 --env-file .env -v /home/your_user_name/.aws:/root/.aws/ notifyhub

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址