test-some-app/README.md
peppa-bot 427cc09c85 TSA-2: product page, /healthz, Dockerfile and deploy config
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 05:31:07 +00:00

14 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# test some app
Проект Peppa FACTORY. Ключ стори: `TSA`. Правила — в [AGENTS.md](AGENTS.md).
## Запуск
Нужен Go 1.22 или новее (если Go нет, `bash scripts/install-go.sh` поставит его в `.tools/go`). Выполните `make run` — сервис соберётся и запустится на порту 8080 (по умолчанию; другой порт задаётся переменной окружения `PORT`, например `PORT=9090 make run`). Проверьте работу командой `curl -i http://localhost:8080/health`: в ответ придёт код 200 и текст `ok`. Остановить сервис можно через Ctrl+C. Тесты запускаются командой `make test`.
Страница продукта — `http://localhost:8080/` (язык: `?lang=ru|kk|en`), проверка здоровья для выкладки — `/healthz`. Тексты страницы — `cmd/server/i18n/*.json`.
## Выкладка
`Dockerfile` собирает образ (порт 3000), `.peppa/project.json` → `deploy` описывает выкладку за Traefik через `deploy/compose.yml`.