Skip to content

hidromatologia-v2/users

Repository files navigation

Users

Coverage Release Tagging Test codecov Go Report Card GitHub go.mod Go version

Users monolithic service API

Documentation

File Description
docs/spec.openapi.yaml OpenAPI specification for this microservice.
CONTRIBUTING.md Contribution manual.
CICD.md CI/CD documentation.

Installation

Docker

docker pull ghcr.io/hidromatologia-v2/users:latest

Docker compose

docker compose -f ./docker-compose.dev.yaml up -d

Binary

You can use the binary present in Releases. Or compile your own with.

go install github.com/hidromatologia-v2/users@latest

Config

Variable Description Example
MEMPHIS_STATION Name for the station to CREATE/CONNECT messages
MEMPHIS_PRODUCER Alerts producer name messages-producer
MEMPHIS_HOST Host or IP of the Memphis service 10.10.10.10
MEMPHIS_USERNAME Memphis Username root
MEMPHIS_PASSWORD Memphis password, if ignored MEMPHIS_CONN_TOKEN will be used memphis
MEMPHIS_CONN_TOKEN Memphis connection token, if ignored MEMPHIS_PASSWORD will be used ABCD
POSTGRES_DSN Postgres DSN to be used host=127.0.0.1 user=sulcud password=sulcud dbname=sulcud port=5432 sslmode=disable
JWT_SECRET JWT secret to use MY_SECRET
REDIS_EMAIL_ADDR Address of the redis server redis:6379
REDIS_EMAIL_DB Redis database 1
REDIS_PASSWORD_ADDR Address of the redis server redis:6379
REDIS_PASSWORD_DB Redis database 2

Binary

users HOST:PORT [HOST:PORT [...]]

Coverage

coverage coverage

About

Users REST API

Resources

License

Contributing

Stars

Watchers

Forks

Packages