a13a8cb0e8f504237e1bdbf5bf2af88142a48161
- Added password management utilities for user administration - Added PowerShell scripts for testing attachment endpoints - Enhanced development and testing workflow capabilities - Completed v1.4.0 with all maintenance tools included"
ServiceManagerWeb - Mesa de Ayuda B2B
Sistema multi-tenant de Mesa de Ayuda/Soporte Técnico empresarial para Aduanasoft.
Arquitectura
- Frontend: SvelteKit + TypeScript (portal clientes + panel interno)
- Backend: Python FastAPI + Pydantic v2
- Workers: Celery + Redis (notificaciones, SLAs, jobs)
- BD: PostgreSQL + Alembic migrations
- Auth: JWT + Refresh tokens + 2FA opcional (TOTP)
- Infra: Docker Compose local, preparado para producción
Estructura del Monorepo
ServiceManagerWeb/
├── backend/ # FastAPI app
├── frontend-client/ # SvelteKit app para clientes
├── frontend-internal/ # SvelteKit app para staff interno
├── workers/ # Celery tasks
├── db/ # Migrations y esquemas
├── docker/ # Dockerfiles específicos
├── docs/ # Documentación adicional
├── scripts/ # Scripts de desarrollo/despliegue
├── docker-compose.yml # Orquestación completa
└── .env.example # Variables de entorno
Stack Tecnológico
Backend (Python)
- FastAPI (async)
- Pydantic v2
- SQLAlchemy 2.0 (async)
- Alembic (migrations)
- Argon2 (hashing passwords)
- PyJWT
- Celery + Redis
Frontend (JavaScript/TypeScript)
- SvelteKit
- TypeScript
- TailwindCSS
- shadcn/ui o similar
- Zod (validación)
Infraestructura
- PostgreSQL 15+
- Redis 7+
- Docker & Docker Compose
- Nginx (reverse proxy)
Dominios del Sistema
- Auth: Usuarios, roles, permisos, 2FA
- Tenants: Multi-tenancy, organizaciones
- Tickets: Gestión de tickets, estados, SLAs
- Notifications: Email, plantillas, logs
- Audit: Bitácora de acciones
Roles de Usuario
Internos (Staff)
ADMIN: Control total del sistemaSUPPORT_MANAGER: Gestión de equipos y SLAsAGENT: Atención de ticketsAUDITOR: Solo lectura para auditoría
Clientes
CLIENT_ADMIN: Gestión de organización clienteCLIENT_USER: Creación y seguimiento de tickets
Quick Start
# Clonar y configurar
git clone <repo>
cd ServiceManagerWeb
cp .env.example .env
# Levantar servicios
docker-compose up -d
# Verificar estado
docker-compose ps
URLs por Defecto
- Frontend Clientes: http://localhost:3000
- Frontend Interno: http://localhost:3001
- API Backend: http://localhost:8000
- API Docs: http://localhost:8000/docs
- Adminer (DB): http://localhost:8080
Scripts de Desarrollo
# Backend
cd backend
python -m uvicorn app.main:app --reload --port 8000
# Frontend Cliente
cd frontend-client
npm run dev -- --port 3000
# Frontend Interno
cd frontend-internal
npm run dev -- --port 3001
# Workers
cd workers
celery -A app.worker worker --loglevel=info
celery -A app.worker beat --loglevel=info
Testing
# Backend tests
cd backend
pytest
# Frontend tests
cd frontend-client
npm test
cd ../frontend-internal
npm test
Contribución
- Fork del proyecto
- Crear feature branch (
git checkout -b feature/nueva-funcionalidad) - Commit cambios (
git commit -am 'Agregar nueva funcionalidad') - Push a branch (
git push origin feature/nueva-funcionalidad) - Crear Pull Request
Licencia
Propietario - Aduanasoft © 2026
Description
Languages
Python
53.1%
Svelte
38.3%
TypeScript
3.4%
PowerShell
1.7%
PLpgSQL
1.2%
Other
2.3%