Skip to content

OpenTreeHole/notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notification Center

This is a notification microservice.

Features

  • support apns and mipush notifications
  • REST API to manage notification and user device tokens

Usage

Build

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

Test

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

API Docs

Please visit http://localhost:8000/docs after running app

Badge

stars issues pull requests

standard-readme compliant

Powered by

Go Swagger

Contributing

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.

Contributors

This project exists thanks to all the people who contribute.

contributors

Licence

license © OpenTreeHole

About

This is a notification microservice.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published