百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

go-notify

> 数据库
开源

一款使用 Golang 编写的邮件自动化解决方案。

200 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一款使用 Golang 编写的邮件自动化解决方案。

go-notify


An email automation solution written in Golang. It facilitate users to register, send & schedule custom HTML mails for their clients.

Built using rich tech-stack:


  • Api-server built using Go-fiber.
  • Apache Kafka as a message broker.
  • Postgres as database.
  • Redis as cache.
  • Client CLI built using Cobra.
  • Mailgun as Email service.
  • K6 for load testing.
  • Prometheus & Grafana for Api-server monitoring.

Architecture diagram:


DB Schema:


Features Included:


  • Authentication & authorization using JWT.
  • Swagger included, built using Swago
  • Full proof auth features - signup, login, update password, forgot password, logout.
  • Cors, Helmet, Api-rate limiter included as middleware from security perspective.
  • Users can register their clients & custom HTML templates.
  • Mail scheduling (daily, weekly, monthly) using cron jobs.
  • Subscription & Payment (payment has been stubbed for now and can be replaced with any suitable payment gateway).
  • Api-server can be consumed by any client-side API, however for easy interaction - CLI (built using Cobra) has been included.

Installation & setup :-


  • Go,Docker,Docker compose & Make should be pre-installed.
  • Clone the repository: git clone https://github.com/Harry-027/go-notify.git.
  • Run the command make download (this will install go modules).
  • Create a new file .env under root directory & copy the env variables from .sample-env. (Note that mailgun env variables should be replaced with original credentials. Rest may remain untouched)
  • Run the command make setup (this will start the required docker containers - postgres, redis, apache kafka & zoo-keeper).
  • Run the command docker ps to ensure all the four containers are up & running.
  • Open a new terminal & run the command make server to spin up the api server.
  • Open a new terminal & run the command make consumer to spin up the kafka consumer.
  • Open a new terminal & run the command make cronjob to start the cron processes.
  • Open a new terminal & run the command cli-go. This will install the go-notify cli on your machine.
  • Cli is now ready to operate. Run the command go-notify --help to explore various commands.

Swagger :-


  • Once the server starts listening on port 3001, visit http://localhost:3001/swagger/ on browser for swagger definition.

Monitoring (using Prometheus & Grafana):-


  • Before spinning up Prometheus & Grafana for monitoring, replace the HOST_IP variable (under monitoring/prometheus/config.yml) with your machine IP.
  • Run the command make monitor to start Api-server monitoring.
  • Once the containers - Prometheus & Grafana are up, visit http://localhost:3000 on browser for Grafana dashboard.
  • Default credentials for Grafana: username - 'admin' , password - 'admin'
  • Once logged into Grafana, visit settings to select prometheus data source as target to view the dashboard.

Load Testing :-


  • Before running load tests, replace the hostip variable value with your machine ip, under loadtesting/tests/loadtests.js
  • Run the command make load-testing to run the load tests.

Sample for a custom HTML received mail :-


Contributing :beers:


  • Performance improvements, bug fixes, better design approaches are welcome. Please discuss any changes by raising an issue, beforehand.

Maintainer :sunglasses:


Harish Bhawnani Linkedin Email

License


MIT © Harish Bhawnani

Issues· 1 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Goapache-kafkacobragogofiber

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库