executive-ai/README.md
2026-11-16 12:31:18 +05:00

43 lines
1.6 KiB
Markdown
Raw 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.

# Executive AI
Проект Peppa FACTORY. Ключ стори: `EA`. Правила — в [AGENTS.md](AGENTS.md).
Экран руководителя: дела и события из календаря Google на ближайшие 7 дней, только просмотр.
## Запуск
```bash
npm ci
npm run dev # http://localhost:3000
```
Без ключей Google приложение работает на примерах и пишет об этом на экране.
## Проверки
```bash
npm run lint
npm run typecheck
npm test
npm run build
```
## Настоящий календарь Google
1. В Google Cloud Console создайте проект, включите Google Calendar API и настройте экран
согласия (право `calendar.events.readonly`); опубликуйте приложение, иначе доступ
придётся подтверждать заново каждые 7 дней.
2. Создайте OAuth-клиент типа «Веб-приложение» и добавьте адреса возврата:
`https://executive-ai-prod.telecom.quest/auth/google/callback`,
`https://executive-ai-staging.telecom.quest/auth/google/callback`,
для разработки — `http://localhost:3000/auth/google/callback`.
3. Задайте `GOOGLE_CLIENT_ID` и `GOOGLE_CLIENT_SECRET` в окружении и перезапустите приложение.
## Docker
```bash
docker build -t executive-ai .
docker run --rm -e PORT=3000 -p 3000:3000 executive-ai
curl http://localhost:3000/healthz
```