Go-Clean-Architecture
Need to install these tools first:
- Docker and docker-compose
- Golang v1.18+
- Golang-migrate tool
brew install golang-migrate - Golangci-lint tool
brew install golangci-lint - Hadolint tool
brew install hadolint - dotenv-linter tool
brew install dotenv-linter - (optional) If you're using Colima instead of Docker Desktop, you need to export
DOCKER_HOSTin order to run test from usecase package
- Copy .env.example to .env
- Run
make run
-
Test 1 user claims multiple times concurrently
go test -v ./internal/usecase/. -
Test multiple user claims at the same time
go test -v ./internal/entity/.
We need to track and check how we can reduce this size