shop_go

module
v0.0.0-...-49692d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: MIT

README

SHOP GO

Project goals:

  • Learn Golang
  • Learn Kafka
  • Learn DDD
  • Practice and gain new skills

Project's main dependencies

Requirements

Development

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL