This commit is contained in:
2026-03-19 16:07:35 +07:00
commit 39b0358b08
63 changed files with 3128 additions and 0 deletions

42
README.md Normal file
View File

@@ -0,0 +1,42 @@
# PostgreSQL Control Center
Production-oriented admin panel for PostgreSQL with custom RBAC, audit logging, schema management, SQL console controls, and a separated backend/frontend architecture.
## Monorepo layout
- `backend` - Express + TypeScript API, RBAC, audit, PostgreSQL metadata/data access
- `frontend` - Vite + Vanilla JS SPA with modular components
- `infra` - Docker, PostgreSQL bootstrap SQL, container helpers
- `docs` - architecture and operational notes
## Quick start
```bash
docker compose up --build
```
Services:
- Frontend: `http://localhost:5173`
- Backend API: `http://localhost:4000/api`
- PostgreSQL: `localhost:5432`
Seeded root user:
- login: `root`
- password: `ChangeMe123!`
## Delivery scope
Implemented foundation:
- Separated backend/frontend architecture
- Session-based auth
- RBAC with group-scoped permissions
- Audit logging
- Table/data/schema APIs
- SQL console with safety guardrails
- PostgreSQL log viewing from Docker container
- Dockerized local production-like setup
See [docs/architecture.md](C:\Users\admin\Desktop\TEst\docs\architecture.md) for details.