Backend: - Add RESTful API endpoints for games: GET, POST, PUT, DELETE /api/games - Implement GamesController for handling game operations - Validate game input using Zod - Create comprehensive tests for all endpoints Frontend: - Develop GameForm component for creating and editing games with validation - Create GameCard component for displaying game details - Implement custom hooks (useGames, useCreateGame, useUpdateGame, useDeleteGame) for data fetching and mutations - Build Games page with a responsive table for game management - Add unit tests for GameForm and Games page components Tests: - Ensure all backend and frontend tests pass successfully - Achieve 100% coverage for new features All changes are thoroughly tested and validated.
Backend — Quasar
Scaffold mínimo del backend usando Fastify + TypeScript + Prisma (SQLite).
Arranque rápido
# desde la raíz
yarn
# entrar al backend
cd backend
# generar cliente Prisma
yarn prisma:generate
# aplicar migraciones (si pide nombre, usar --name init)
yarn prisma:migrate
# abrir Prisma Studio
yarn prisma:studio
# ejecutar en desarrollo
yarn dev
# ejecutar tests
yarn test
Notas:
- Use
.env.examplecomo referencia paraDATABASE_URL.
Metadatos:
Autor: GitHub Copilot
Última actualización: 2026-02-07