This is a backend for pushing notifications when reports are created with Smart Cities application.
To start using this project first you must install Golang.
The following dependencies are used in this project:
- Gin-Gonic - HTTP Web Framework
- Viper - Library used for giving a configuration solution
- Resty - Library of HTTP & REST Client
In your config.toml file you can configure the key server used for pushing notifications once you created an account on Firebase web page.
[fcm]
host = "https://fcm.googleapis.com/fcm/send"
keyServer = "PUT HERE YOUR KEY SERVER"
[server]
port = 9003
Once Golang is installed clone this repository and run the following command at your project root
go get
This will download all the dependencies required.
Once you have installed Golang, go to the project's root and execute the following command in your terminal:
go run main.go
You could use Postman for testing all endpoints of this backend.
...
This is the initial version We use SemVer for versioning.
...