|
@@ -1,6 +1,6 @@
|
|
-### Формат файла конфигурации приложения
|
|
|
|
|
|
+### Config example
|
|
|
|
|
|
-config/.env
|
|
|
|
|
|
+.env
|
|
|
|
|
|
```
|
|
```
|
|
# APP
|
|
# APP
|
|
@@ -11,7 +11,7 @@ CORS_ALLOW_ORIGIN=*
|
|
CORS_ALLOW_METHODS=GET,POST,PUT,DELETE
|
|
CORS_ALLOW_METHODS=GET,POST,PUT,DELETE
|
|
|
|
|
|
# DB
|
|
# DB
|
|
-DB_DRIVER=postgres
|
|
|
|
|
|
+DB_DRIVER=mysql
|
|
DB_HOST=localhost
|
|
DB_HOST=localhost
|
|
DB_PORT=1111
|
|
DB_PORT=1111
|
|
DB_NAME=db
|
|
DB_NAME=db
|
|
@@ -60,21 +60,21 @@ LOGGER_EMAIL_RECIPIENT=info@dmitriygnatenko.ru
|
|
LOGGER_EMAIL_SUBJECT=Error from dmitriygnatenko.ru
|
|
LOGGER_EMAIL_SUBJECT=Error from dmitriygnatenko.ru
|
|
```
|
|
```
|
|
|
|
|
|
-### Команды
|
|
|
|
|
|
+### Commands
|
|
|
|
|
|
-- make run (запуск приложения)
|
|
|
|
-- make test (запуск тестов)
|
|
|
|
-- make test-cover (статистика по покрытию тестами)
|
|
|
|
-- make lint (запуск линтера)
|
|
|
|
-- make migration-status (статус миграций)
|
|
|
|
-- make migration-up (применение миграций)
|
|
|
|
-- make migration-down (откат миграций)
|
|
|
|
-- make docker-build (сборка контейнеров)
|
|
|
|
-- make docker-up (запуск контейнеров)
|
|
|
|
-- make docker-down (остановка контейнеров)
|
|
|
|
-- make install-deps (установка зависимостей)
|
|
|
|
-- make app-build (компиляция приложения)
|
|
|
|
|
|
+- make run (run application)
|
|
|
|
+- make test (run tests)
|
|
|
|
+- make test-cover (test coverage statistics)
|
|
|
|
+- make lint (run linter)
|
|
|
|
+- make migration-status (migrations status)
|
|
|
|
+- make migration-up (apply migrations)
|
|
|
|
+- make migration-down (rollback migrations)
|
|
|
|
+- make docker-build (build and run Docker containers)
|
|
|
|
+- make docker-up (run Docker containers)
|
|
|
|
+- make docker-down (stop Docker containers)
|
|
|
|
+- make install-deps (dependencies installation)
|
|
|
|
+- make app-build (compile application)
|
|
|
|
|
|
-### Метрики (защищены Basic auth)
|
|
|
|
|
|
+### Metrics (protected by Basic auth)
|
|
|
|
|
|
/metrics
|
|
/metrics
|