SHOP GO
Project goals:
- Learn Golang
- Learn Kafka
- Learn DDD
- Practice and gain new skills
Project's main dependencies
Requirements
Development
Via go install (Recommended)
With go 1.23 or higher:
go install github.com/air-verse/air@latest
Via install.sh
# binary will be $(go env GOPATH)/bin/air
curl -sSfL https://raw.githubusercontent.com/air-verse/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
# or install it into ./bin/
curl -sSfL https://raw.githubusercontent.com/air-verse/air/master/install.sh | sh -s
air -v
Clone the project
git clone https://github.com/Lozerd/shop_go
Install dependencies
cd shop_go
go mod download
Install go-swagger3
go install github.com/parvez3019/go-swagger3@latest
Generate swagger docs
go-swagger3 --module-path . --main-file-path ./cmd/server/main.go --output oas.json --schema-without-pkg --generate-yaml true
Run application using air
air
Run application using docker compose
docker compose up --build
License
The MIT License (MIT)