emergency-messages
所属分类:中间件编程
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2024-02-03 11:05:09
上 传 者:
sh-1993
说明: 服务及时发送关于正在发生的事件和安全提示的消息,确保每个人都能及时了解实时更新。
(Service promptly sends messages about ongoing incidents and safety tips, ensuring everyone stays in the loop with live updates.)
文件列表:
.idea/
assets/
cmd/app/
internal/
Taskfile.yml
docker-compose.yml
go.mod
go.sum
![emergency-service](https://github.com/iaiw3br/emergency-messages/blob/master/assets/banner.png)
## Emergency Service
This system is your trusty and reliable aid designed to keep users safe and informed during emergencies.
It promptly sends messages by SMS, Emails about on-going incidents and safety tips, ensuring everyone stays in the loop with live updates.
Never feel unprepared with our Emergency Service Notification System at hand!
## Run
```
go run cmd/app/main.go
```
## ENVS:
```
export PORT='rpcuser'
export DATABASE_URL='rpcpass'
export LISTEN_ADDR='http://localhost:18334'
export EMAIL_API_KEY='63ccb9a43cd1b'
export PUBLIC_API_KEY='pubkey-2084d9c'
export EMAIL_DOMAIN='emergency-message.com'
export MOBILE_TWIL_ACCOUNT_SID='3537af2e99b5'
export MOBILE_TWIL_AUTH_TOKEN='3537af2e99b5'
export MOBILE_PHONE_EMERGENCY_SERVICE='+783172873'
```
## Libriraries
```
route: go-chi
migrate: golang-migrate
postgresql: jackc/pgx
sending message by email: mailgun-go
logs: logrus
sql-queries: uptrace/bun
```
# TODO
- [x] graceful shutdown
- [ ] send messages by telegram
- [ ] send messages by what's app
近期下载者:
相关文件:
收藏者: