Initial commit

This commit is contained in:
Вечерний детектив
2026-06-28 17:24:14 +00:00
commit 36575fd0fc
17 changed files with 861 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
# template
Шалон для Go сервисов (имя репо должно быть snake case)
Методы http должны быть с префиксом /api
Инициализация
```shell
make generate
go mod tidy
docker compose -f docker-compose-db.yml up -d
cp .env.example .env
mkdir migrations
```
Запуск
```shell
make run
```
Сборка
```shell
make build-builder
make build-linux
```
Миграции
```shell
goose -dir ./migrations create {migration name} sql
goose -dir ./migrations postgres "user=postgres password=postgres host=localhost dbname=evening_detective_server sslmode=disable" up
```
Тестирование
```shell
make test
```