16 lines
No EOL
445 B
Makefile
16 lines
No EOL
445 B
Makefile
.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
|