nquest/Makefile

16 lines
445 B
Makefile
Raw Normal View History

2023-11-01 23:21:12 +03:00
.PHONY: db
db:
docker run --name nquest-db -e POSTGRES_DB=nquest -e POSTGRES_USER=nquest -e POSTGRES_PASSWORD=nquest -p 5432:5432 -d postgres
.PHONY: gen-api
gen-api:
oapi-codegen -generate server,spec -package api -o api/server.go api/openapi.yaml
oapi-codegen -generate types -package api -o api/types.go api/openapi.yaml
.PHONY: build-front
build-front:
cd frontend & npm run
.PHONY: dev-front
dev-front:
cd frontend & npm run dev