Test task for coins.ph. It was simple, isn't it?
- https://github.com/go-kit/kit for base of service.
- https://github.com/jmoiron/sqlx for working with database.
- https://github.com/golang-migrate/migrate for database migrations.
Run docker-compose up
in project directory.
Run go test github.com/pashukhin/coins-test-task/business
Read go docs on http://localhost:6060/pkg/github.com/pashukhin/coins-test-task/ after running godoc -http=:6060
in project directory.
Http api docs also available in api.md file.
- Trying to connect to database.
- If ok, trying to apply db migrations to database.
- If no errors except "no changes", makes entity repositories.
- If ok, makes implementation of business logic.
- If ok, wraps it into middlewares.
- If ok, makes http transport.
- If ok, runs http server to listen and serve :)