How juanes-10/proyecto_unispace works
UniSpace is a small FastAPI room-reservation application with a server-rendered web flow and a separate JSON reservations API. Users log in, view room/time availability, and submit reservations; the web reservation controller validates availability and persists it to JSON. The API supports listing, looking up, creating, and filtering typed reservations, stored in process memory. A health endpoint is also exposed. The source excerpts show these routes and calls; the README gives no additional product details.
Main entry points: web_router.py Web routes · config.py App configuration · main.py FastAPI app · reserva_archivo_controller.py Web reservation logic
Components 15
Web experience
- Web routes
backend/routers/web_router.py - Login page
backend/templates/login.html - Dashboard page
backend/templates/dashboard.html - Credential validation
backend/controllers/auth_controller.py - User records
backend/usuarios.txt
Reservation workflows
- Web reservation logic
backend/controllers/reserva_archivo_controller.py - Reservation file
backend/reservas.json - Reservation API routes
backend/routers/api_reservas_router.py - API reservation logic
backend/controllers/reserva_api_controller.py - Reservation model
backend/models/reserva.py - In-memory reservations
backend/controllers/reserva_api_controller.py
Configuration and health
- FastAPI app
backend/main.py - App configuration
backend/core/config.py - Health route
backend/routers/health_router.py
Other components
- Web user
Connections 18
- FastAPI app → Web routes: registers
backend/main.py - FastAPI app → Reservation API routes: registers
backend/main.py - FastAPI app → Health route: registers
backend/main.py - Web user → Web routes: submits requests
backend/routers/web_router.py - Web routes → Credential validation: validates login
backend/routers/web_router.py - Credential validation → User records: reads credentials
backend/controllers/auth_controller.py - Web routes → Login page: renders
backend/routers/web_router.py - Web routes → Dashboard page: renders
backend/routers/web_router.py - Web routes → Web reservation logic: loads or reserves
backend/routers/web_router.py - Web reservation logic → Reservation file: reads and writes
backend/controllers/reserva_archivo_controller.py - Web routes → App configuration: uses settings
backend/routers/web_router.py - Web reservation logic → App configuration: uses file and slots
backend/controllers/reserva_archivo_controller.py - App configuration → Login page: sets template directory
backend/core/config.py - App configuration → Dashboard page: sets template directory
backend/core/config.py - Reservation API routes → API reservation logic: dispatches
backend/routers/api_reservas_router.py - Reservation API routes → Reservation model: accepts model
backend/routers/api_reservas_router.py - API reservation logic → Reservation model: uses model
backend/controllers/reserva_api_controller.py - API reservation logic → In-memory reservations: reads and updates
backend/controllers/reserva_api_controller.py