Categorygithub.com/lsmhun/wage-sum-server
module
0.0.0-20241218143721-f456c05d47de
Repository: https://github.com/lsmhun/wage-sum-server.git
Documentation: pkg.go.dev

# README

CircleCI codecov FOSSA Status

Wagesum demo appication

Demo microservice with GO programming language. It can calculate the sum of salaries under manager recursively. It supports CRUD functionality for employees and salaries.

REST interface details are available wagesum-openapi.yaml

Howto build and start

You need gmake and go 1.19 installed. (1.17+)

docker run -p 5432:5432 --name wagesum-postgres -e POSTGRES_DB=wagesum -e POSTGRES_PASSWORD=mysecretpassword -d postgres
make build
./out/bin/wagesum

Configuration

This application can be configured runtime with environment variables.

Env var nameTypeDefault value
WAGESUM_DB_TYPEstringpostgres
WAGESUM_DB_HOSTstring127.0.0.1
WAGESUM_DB_PORTstring5432
WAGESUM_DB_NAMEstringwagesum
WAGESUM_DB_USERNAMEstringpostgres
WAGESUM_DB_PASSWORDstringmysecretpassword
WAGESUM_HTTP_SERVER_PORTstring3000

Documentation

# Packages

No description provided by the author