nquest/Makefile

23 lines
424 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: generate
generate:
go generate ./...
.PHONY: build-front
build-front:
cd frontend
npm run build
.PHONY: dev-front
dev-front:
cd frontend
npm run dev
.PHONY: deploy
deploy: frontend/dist
docker context use curie
docker compose up -d
docker context use default