create and moove into new directories for BegushiyBashkir and

yalarbacreate and moove into new directories for BegushiyBashkir and
yalarbacreate and moove into new directories for BegushiyBashkir and
yalarbacreate and moove into new directories for BegushiyBashkir and
yalarbacreate and moove into new directories for BegushiyBashkir and
yalarbacreate and moove into new directories for BegushiyBashkir and
yalarbacreate and moove into new directories for BegushiyBashkir and
yalarbacreate and moove into new directories for BegushiyBashkir and
yalarbacreate and moove into new directories for BegushiyBashkir and
yalarba
This commit is contained in:
2025-10-24 05:22:44 +05:00
parent 358c14428f
commit 15357fd3c0
211 changed files with 3 additions and 3 deletions
+35
View File
@@ -0,0 +1,35 @@
.PHONY: build run test clean migrate
# Переменные
APP_NAME=serv_golang_rest_api
DOCKER_COMPOSE=docker compose
# Сборка и запуск
build:
$(DOCKER_COMPOSE) build
up:
$(DOCKER_COMPOSE) up -d
down:
$(DOCKER_COMPOSE) down
logs:
$(DOCKER_COMPOSE) logs -f api
# Разработка
dev:
$(DOCKER_COMPOSE) up db -d
go run ./cmd/api
test:
go test ./...
# Миграции
migrate:
$(DOCKER_COMPOSE) exec api ./main migrate
# Очистка
clean:
$(DOCKER_COMPOSE) down -v
docker system prune -f