Personal blog (Golang, Fiber)

Dima 6ca5c1d3ae Rebuild app há 2 anos atrás
build 6ca5c1d3ae Rebuild app há 2 anos atrás
cmd 67865e1507 Services refactoring há 2 anos atrás
config 01c6061e41 Project directories refactoring há 2 anos atrás
internal 028cafab37 Add tests há 2 anos atrás
migrations 6bf02cfe12 Add migrations há 2 anos atrás
web 01c6061e41 Project directories refactoring há 2 anos atrás
.gitignore 01c6061e41 Project directories refactoring há 2 anos atrás
.golangci.yml 6c6802b68d Add linter há 2 anos atrás
Makefile e812b23a6b Rebuild app há 2 anos atrás
go.mod 8da3aabbaa Add mocks há 2 anos atrás
go.sum 8da3aabbaa Add mocks há 2 anos atrás
readme.md 01c6061e41 Project directories refactoring há 2 anos atrás

readme.md

Формат файла конфигурации приложения

config/.env

APP_PORT=8080

DB_HOST=localhost
DB_PORT=3306
DB_NAME=
DB_USER=
DB_PASSWORD=

SMTP_HOST=
SMTP_PORT=
SMTP_USER=
SMTP_PASSWORD=

STATIC_VERSION=
GA_ENABLED=

ADMIN_EMAIL=
ADMIN_USER=
ADMIN_PASSWORD=

Команды

  • make run (запуск приложения)
  • make app-build (компиляция приложения)
  • make lint (запуск линтера)
  • make test (запуск тестов)
  • make test-cover (статистика по покрытию тестами)
  • make docker-build (сборка контейнеров)
  • make docker-up (запуск контейнеров)
  • make docker-down (остановка контейнеров)
  • make migration-status (статус миграций)
  • make migration-up (применение миграций)