Первый в мире Visual UI для Alembic миграций!
Modern Developer Tool для Python-разработчиков с PostgreSQL + SQLAlchemy + Alembic. Zero-config запуск через Docker.
Killer Feature: Visual Alembic UI - первый GUI для управления Alembic миграциями за 14 лет существования инструмента!
Вместо CLI команд:
alembic upgrade head
alembic downgrade -1
alembic currentИспользуй красивый UI с одной кнопкой 🚀
- ✅ Visual Alembic UI - просмотр истории миграций, apply/rollback через UI
- ✅ Migration Timeline - визуальная шкала времени с индикаторами статуса
- ✅ Zero-Config Docker - запуск через
docker-compose up - ✅ Modern Dark Theme - удобный UI для разработчиков
- ✅ Real-time Status - current revision, pending migrations
- ✅ FastAPI Backend - быстрый async API
- ✅ React + TypeScript - типобезопасный фронтенд
- Docker Desktop или Docker + Docker Compose
- Порты 3000, 5432, 8000 должны быть свободны
# 1. Клонировать репозиторий
git clone <repo-url>
cd Postgresql
# 2. Запустить через Docker Compose
docker-compose up --build
# 3. Открыть в браузере
# Frontend: http://localhost:3000
# Backend API: http://localhost:8000
# API Docs: http://localhost:8000/docsГотово! Откройте http://localhost:3000 и увидите Visual Alembic UI в действии.
Postgresql/
├── backend/ # FastAPI backend
│ ├── app/
│ │ ├── routers/
│ │ │ └── alembic.py # 🔥 Killer feature: Alembic API
│ │ ├── services/
│ │ │ └── alembic_service.py # Alembic Python wrapper
│ │ ├── config.py # Configuration
│ │ └── main.py # FastAPI app
│ ├── pyproject.toml # Python dependencies
│ ├── Dockerfile
│ └── README.md
│
├── frontend/ # React + TypeScript frontend
│ ├── src/
│ │ ├── components/
│ │ │ └── MigrationsPage.tsx # 🔥 Visual Alembic UI
│ │ ├── services/
│ │ │ └── api.ts # Backend API client
│ │ ├── types/ # TypeScript types
│ │ ├── App.tsx
│ │ └── main.tsx
│ ├── package.json
│ ├── tailwind.config.js
│ ├── Dockerfile
│ └── README.md
│
├── example_project/ # Example project for testing
│ ├── models/ # SQLAlchemy models (User, Post)
│ ├── alembic/ # Alembic migrations
│ │ └── versions/
│ │ ├── 001_create_users_table.py
│ │ └── 002_create_posts_table.py
│ └── alembic.ini
│
├── docker-compose.yml # Full stack setup
├── IDEA-CARD.md # Product idea formulation
├── PRD-ru.md # Full Product Requirements Doc
└── README.md # This file
Откройте http://localhost:3000 - вы увидите:
- ✅ Список всех миграций
- ✅ Текущий revision (зелёный индикатор)
- ✅ Pending миграции (жёлтый индикатор)
- ✅ Общий статус БД
Нажмите кнопку "Apply Migrations" - все pending миграции будут применены.
Вместо:
alembic upgrade headНажмите кнопку "Rollback One" - последняя миграция будет откачена.
Вместо:
alembic downgrade -1┌─────────────────────────────────────────┐
│ React Frontend (localhost:3000) │
│ - MigrationsPage.tsx (Visual UI) │
│ - TailwindCSS Dark Theme │
│ - Axios API Client │
└────────────┬────────────────────────────┘
│ HTTP REST API
┌────────────▼────────────────────────────┐
│ FastAPI Backend (localhost:8000) │
│ - AlembicService (Killer Feature) │
│ - Alembic Python API Integration │
│ - CRUD Operations │
└────────────┬────────────────────────────┘
│ asyncpg
┌────────────▼────────────────────────────┐
│ PostgreSQL (localhost:5432) │
│ - Database: testdb │
│ - User: postgres │
└──────────────────────────────────────────┘
- FastAPI 0.104+ - Async веб-фреймворк
- SQLAlchemy 2.0+ - ORM
- Alembic 1.12+ - Database migrations (интеграция через Python API!)
- asyncpg - Async PostgreSQL driver
- Pydantic 2.4+ - Validation
- React 18 - UI library
- TypeScript - Type safety
- Vite - Build tool
- TailwindCSS 3.4+ - Styling
- Axios - HTTP client
- Lucide React - Icons
- Docker + Docker Compose - Containerization
- PostgreSQL 17 - Database
- Nginx - Frontend serving (production)
# Получить список миграций
GET /api/alembic/migrations
# Получить статус
GET /api/alembic/status
# Применить pending миграции
POST /api/alembic/upgrade
# Откатить одну миграцию
POST /api/alembic/downgrade
# Health check
GET /api/alembic/healthSwagger UI: http://localhost:8000/docs
cd backend
poetry install
poetry run python -m app.maincd frontend
npm install
npm run devcd example_project
alembic revision --autogenerate -m "add new column"Затем обновите страницу в браузере - новая миграция появится в UI!
- FastAPI backend с Alembic endpoint
- React UI с Visual Alembic UI
- Docker Compose setup
- Example project для тестирования
- Data Browser (CRUD через UI)
- SQLAlchemy models introspection
- Foreign key relationships navigation
- Filter/sort в таблицах
- Production-ready Docker images
- Tests (pytest + React Testing Library)
- ER диаграмма из SQLAlchemy models
- Query Editor с подсветкой SQL
- ORM Code Generator (DB → SQLAlchemy)
- Team collaboration features
- Multi-database support
Primary: Python Backend Разработчики
- Используют FastAPI / Flask / Django
- SQLAlchemy + Alembic ежедневно
- PostgreSQL в Docker
- Junior-Middle уровень
- Стартапы без DBA
Размер рынка: ~3 млн Python developers с SQLAlchemy + Alembic
- Уникальная ниша - Visual Alembic UI не существует (14 лет без GUI!)
- Реальная боль - каждый Python разработчик страдает от CLI
- Zero-config -
docker-compose upи готово - Developer-focused - удобный UI, темная тема, keyboard shortcuts
- PRD (Product Requirements Document) - полная спецификация продукта
- IDEA-CARD - формулировка идеи
- Backend README - документация backend API
- Frontend README - документация frontend UI
- ADR (
docs/adr/) - Architecture Decision Records (архитектурные решения) - Specs (
docs/specs/) - Спецификации реализованных фич - Backlog (
docs/backlog/) - Planning: features, bugs, improvements - Dev Journal (
docs/dev-journal/) - Журнал разработки - Architecture (
docs/architecture/) - System design, DB schema, tech stack - CHANGELOG (
docs/CHANGELOG.md) - История изменений по релизам
- CLAUDE.md - Конфигурация для Claude Code AI (автоматически загружается)
- CLAUDE.local.md.example - Template для personal настроек
- Slash Commands (
.claude/commands/) - 10 команд для workflow automation - Subagents (
.claude/agents/) - Specialized AI agents (postgres-python-expert)
Работаешь с Claude Code? Все настройки и команды уже преднастроены! Просто начни работу.
Проект в стадии POC. Feedback welcome!
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
MIT License - смотри LICENSE
Если вам нравится идея:
- ⭐ Star на GitHub
- 📢 Share с друзьями Python-разработчиками
- 💬 Feedback и feature requests в Issues
Сделано с ❤️ для Python-разработчиков, уставших от alembic upgrade head в консоли.
Первый GUI для Alembic за 14 лет! 🚀