28 lines
792 B
Makefile
28 lines
792 B
Makefile
.PHONY: api build db-create db-migrate admin-create user-create test check admin-dev admin-build
|
|
export GOCACHE := $(CURDIR)/.cache/go-build
|
|
|
|
api: admin-build
|
|
go run ./cmd/api -env-file .env
|
|
build: admin-build
|
|
mkdir -p bin
|
|
go build -trimpath -o bin/veyra-api ./cmd/api
|
|
go build -trimpath -o bin/veyra-db ./cmd/db
|
|
go build -trimpath -o bin/veyra-user ./cmd/user
|
|
db-create:
|
|
go run ./cmd/db -env-file .env -action create
|
|
db-migrate:
|
|
go run ./cmd/db -env-file .env -action migrate
|
|
admin-create:
|
|
go run ./cmd/user -env-file .env -role ADMIN
|
|
user-create:
|
|
go run ./cmd/user -env-file .env -role USER
|
|
test:
|
|
go test -race ./...
|
|
check:
|
|
go vet ./...
|
|
npm run build --workspace @veyra/admin
|
|
admin-dev:
|
|
npm run dev --workspace @veyra/admin
|
|
admin-build:
|
|
npm run build --workspace @veyra/admin
|