schedule-web/README.md

30 lines
1.1 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.

# schedule-web
Flask-сервис, который тянет расписание и ведёт журнал. Отдаётся через nginx
на домен `triron.ru` (проксирование на `127.0.0.1:5000`).
## Состав
- `PythonApplication1.py` — основной код приложения
- `auto-refresh.sh` — периодический POST на `/api/update`
- `requirements.txt` — зависимости из production-окружения
- `PythonApplication1.py.bak_timeago` — бэкап кода от 13.09
## Запуск
```
python3 -m venv venv
./venv/bin/pip install -r requirements.txt
./venv/bin/playwright install chromium
./venv/bin/python PythonApplication1.py
```
Приложение ожидает `127.0.0.1:5000` и файл с учётными данными
`.journal_credentials` (права 600) в корне проекта — две строки: логин, пароль.
Файл в репозиторий намеренно не включён.
## Что не коммитится
`venv/`, логи, `session*.json`, `schedule.json` и `.journal_credentials` —
см. `.gitignore`.