Initial commit of Descrybe v2 without local scratch artifacts.
Drop one-shot tmp/axe scripts and agent i18n scratch so the Gitea tree is deployable.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
DATABASE_URL ?= postgres://descrybe:descrybe@localhost:5433/descrybe?sslmode=disable
|
||||
GOOSE ?= go run github.com/pressly/goose/v3/cmd/goose@v3.24.1
|
||||
SQLC ?= go run github.com/sqlc-dev/sqlc/cmd/sqlc@v1.29.0
|
||||
|
||||
.PHONY: migrate-up sqlc run worker migrator tidy test vet
|
||||
|
||||
migrate-up:
|
||||
$(GOOSE) -dir sql/schema postgres "$(DATABASE_URL)" up
|
||||
|
||||
sqlc:
|
||||
$(SQLC) generate
|
||||
|
||||
run:
|
||||
go run ./cmd/api
|
||||
|
||||
worker:
|
||||
go run ./cmd/worker
|
||||
|
||||
migrator:
|
||||
go run ./cmd/migrator -mysql "$(MIGRATE_MYSQL_DSN)" -postgres "$(DATABASE_URL)"
|
||||
|
||||
tidy:
|
||||
go mod tidy
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
vet:
|
||||
go vet ./...
|
||||
Reference in New Issue
Block a user