Initial commit: Plataforma de Economía

Features:
- React 18 + TypeScript frontend with Vite
- Go + Gin backend API
- PostgreSQL database
- JWT authentication with refresh tokens
- User management (admin panel)
- Docker containerization
- Progress tracking system
- 4 economic modules structure

Fixed:
- Login with username or email
- User creation without required email
- Database nullable timestamps
- API response field naming
This commit is contained in:
Renato
2026-02-12 01:30:57 +01:00
commit d31575a143
57 changed files with 7017 additions and 0 deletions

40
contexto.md Normal file
View File

@@ -0,0 +1,40 @@
# Contexto del Proyecto - Plataforma de Economía
## Objetivo
Plataforma educativa para aprender economía mediante 4 módulos interactivos con ejercicios.
## URLs
- **Producción**: https://eco.cbcren.online (actualmente no funciona por problema de Caddy)
- **Temporal**: http://194.163.191.200:3002
## Tech Stack
- **Frontend**: React 18 + TypeScript + Vite + Tailwind CSS
- **Backend**: Go + Gin
- **Base de datos**: PostgreSQL
- **Auth**: JWT
- **Docker**: Docker Compose
## Estructura
```
/home/ren/econ/
├── frontend/ # React app
├── backend/ # Go API
├── docker-compose.yml
├── .env
└── tofix.md # Problema a resolver
```
## Estado
- Frontend: ✅ Compila y funciona en puerto 3002
- Backend: ✅ Compila y funciona en puerto 8080
- PostgreSQL: ✅ Corriendo en puerto 5433
- Caddy proxy: ❌ No puede acceder a los contenedores
## Credenciales
- Admin por defecto: `admin@econ.local` / `admin123` (se crea automáticamente)
## Archivos importantes
- `/home/ren/econ/README.md` - Documentación general
- `/home/ren/econ/TECH_SPECS.md` - Especificaciones técnicas
- `/home/ren/econ/TODO.md` - Tareas pendientes
- `/home/ren/econ/tofix.md` - Problema actual