root 66112901d5 Add PostgreSQL, ClickHouse and HTTP/API metrics collection 4 weeks ago
..
alembic 66112901d5 Add PostgreSQL, ClickHouse and HTTP/API metrics collection 4 weeks ago
app 66112901d5 Add PostgreSQL, ClickHouse and HTTP/API metrics collection 4 weeks ago
.env.example a8ad3ec980 Setup backend infrastructure 1 month ago
BACKEND_MVP_READY.md 5afff251d3 Implement complete MyBeacon backend MVP 1 month ago
README.md a8ad3ec980 Setup backend infrastructure 1 month ago
alembic.ini df94aa71a0 Setup Alembic migrations and FastAPI app 1 month ago
poetry.lock f37acf769c Add comprehensive monitoring and alerting system 4 weeks ago
pyproject.toml f37acf769c Add comprehensive monitoring and alerting system 4 weeks ago

README.md

MyBeacon Backend

FastAPI backend для платформы MyBeacon - модульная система мониторинга BLE/WiFi устройств.

Требования

  • Python 3.11+
  • PostgreSQL 16+
  • Redis 5+

Установка

# Установить зависимости
poetry install

# Создать .env файл
cp .env.example .env

# Запустить миграции
alembic upgrade head

# Запустить сервер
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload

Структура

  • app/ - основное приложение
  • alembic/ - миграции базы данных
  • tests/ - тесты

API Documentation

После запуска сервера: