up database:
docker compose up
run project:
go run cmd/webserver/main.go
generate sqcl files:
sqlc generate
create new migration:
make create_migration
run migrations up:
make migrate_up
run migrations down:
make migrate_down
install swaggo
go get -u github.com/swaggo/swag
generate swagger
swag init -g internal/handler/routes/docs_route.go
run tests:
go test -v ./...
access:
http://localhost:8080/docs/index.html#/