$ go mod download
$ make docker-database-up
$ make dev
$ brew install golangci-lint
After you can run:
$ golangci-lint run ./...
$ make help
build Build a version
clean Remove temporary files
dev Go Run
swag Update swagger.json
swag-fmt Formatter for GoDoc (Swagger)
docker-up Start Docker-Compose Container with app & database
docker-down Down Docker-Compose Containers
docker-database-up Start Docker-compose Container with only database service
📂cmd/
├─ 📂app
│ ├─ 📄main.go // Main package of the application, containing minimal logic, only responsible for launching the application
📂internal/
├─ 📂app/ // Core application package. Dependencies are initialized here, main goroutines are started, and the web server is launched
├─ 📂database/ // Database configuration and migrations
├─ 📂config/ // Application configuration
├─ 📂server/ // Server configuration (router), API entry points description
├─ 📂entity/ // Entities and repositories
├─ 📂service // Business logic layer
│ ├─ 📂 user // Users
├─ 📂utils // Utility functions used across all layers of the application
- Localhost 8080 (for dev)
- Swagger API Doc