Skip to content

AltusConsulting/messaging311-backend

Repository files navigation

messaging-backend

This is a backend for pushing notifications when reports are created with Smart Cities application.

Getting Started

To start using this project first you must install Golang.

Prerequisites

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

Installing

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.

Deployment

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.

Contributing

...

Versioning

This is the initial version We use SemVer for versioning.

Authors

License

...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages