Simple server build on net/http. Using github.com/jinzhu/gorm as ORM.
Golang >= 1.14
Postgres database.
Clone current repository, get in it and run:
go build .Be sure to create hw_db database before run.
You can use docker-compose commands to run service:
docker-compose upService listens to port 5000 by default.
Tests are in game_handler_test.go and repo_test.go files.
To run tests:
go testThere is request.sh file containing curl request to the service.