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
|
|
|
|
|
2023-11-12 23:22:58 +03:00
|
|
|
.PHONY: generate
|
|
|
|
generate:
|
|
|
|
go generate ./...
|
2023-11-02 00:17:15 +03:00
|
|
|
|
|
|
|
.PHONY: build-front
|
|
|
|
build-front:
|
2024-04-29 23:01:24 +03:00
|
|
|
cd frontend
|
|
|
|
npm run build
|
2023-11-02 00:17:15 +03:00
|
|
|
|
|
|
|
.PHONY: dev-front
|
|
|
|
dev-front:
|
2024-04-29 23:01:24 +03:00
|
|
|
cd frontend
|
|
|
|
npm run dev
|
|
|
|
|
|
|
|
.PHONY: deploy
|
|
|
|
deploy: frontend/dist
|
2024-04-29 23:31:44 +03:00
|
|
|
unset DOCKER_HOST
|
2024-04-29 23:01:24 +03:00
|
|
|
docker context use curie
|
2024-04-29 23:31:44 +03:00
|
|
|
docker compose up -d --build --remove-orphans
|
2024-04-29 23:01:24 +03:00
|
|
|
docker context use default
|