This is a notification microservice.
- support apns and mipush notifications
- REST API to manage notification and user device tokens
git clone https://github.com/OpenTreeHole/notification.git
cd notification
# install swag and generate docs
go install github.com/swaggo/swag/cmd/swag@latest
swag init --parseInternal --parseDependency --parseDepth 1 # to generate the latest docs, this should be run before compiling
# build and run
go build -o notification.exe
./notification.exe
Please export MODE=test
and BASE_PATH=$PWD
to avoid relative path errors in unit tests.
Device tokens must be set to test push notifications,
export ${service}_DEVICE_TOKEN
for each push service,
e.g. APNS_DEVICE_TOKEN=1234567
Please visit http://localhost:8000/docs after running app
Feel free to dive in! Open an issue or Submit PRs.
We are now in rapid development, any contribution would be of great help. For the developing roadmap, please visit this issue.
This project exists thanks to all the people who contribute.