feat: database-first refactor, unified architecture and visual developer manual

Summary of changes:
- Consolidated Studio+CMS and Experience+LMS into unified services.
- Moved core business logic (enrollment, grading, auth) to PostgreSQL functions.
- Implemented advanced auditing via DB triggers and session context.
- Added gamification (XP/Levels/Leaderboards) and logic encapsulation.
- Updated installation/diagnostic scripts for the new architecture.
- Created a comprehensive Visual Developer Manual in README.md with hardware scaling.
This commit is contained in:
2026-01-11 02:34:23 -03:00
parent a19da8de76
commit b1eb23926e
42 changed files with 2661 additions and 588 deletions
+12 -26
View File
@@ -10,52 +10,38 @@ services:
volumes:
- postgres_data:/var/lib/postgresql/data
cms-service:
studio:
build:
context: .
dockerfile: services/cms-service/Dockerfile
dockerfile: web/studio/Dockerfile
ports:
- "3000:3000"
- "3001:3001"
environment:
DATABASE_URL: postgresql://user:password@db:5432/openccb_cms
JWT_SECRET: openccb_secret_key_2025_production
ports:
- "3001:3001"
NEXT_PUBLIC_CMS_API_URL: http://localhost:3001
volumes:
- uploads_data:/app/uploads
env_file: .env
depends_on:
- db
lms-service:
experience:
build:
context: .
dockerfile: services/lms-service/Dockerfile
dockerfile: web/experience/Dockerfile
ports:
- "3003:3003"
- "3002:3002"
environment:
DATABASE_URL: postgresql://user:password@db:5432/openccb_lms
JWT_SECRET: openccb_secret_key_2025_production
ports:
- "3002:3002"
NEXT_PUBLIC_LMS_API_URL: http://localhost:3002
env_file: .env
depends_on:
- db
studio:
build:
context: ./web/studio
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
NEXT_PUBLIC_CMS_API_URL: http://localhost:3001
experience:
build:
context: ./web/experience
dockerfile: Dockerfile
ports:
- "3003:3003"
environment:
NEXT_PUBLIC_LMS_API_URL: http://localhost:3002
whisper:
image: ${WHISPER_IMAGE:-fedirz/faster-whisper-server:latest-cpu}
ports: