- Updated Prisma and @prisma/client to version 6.19.2 in package.json and yarn.lock. - Added package extensions for @prisma/client in .yarnrc.yml. - Updated backend README.md for clearer setup instructions. - Created initial migration for Game, Platform, and related tables in Prisma. - Added migration lock file for version control. - Implemented tests for Game model using Vitest, including creation and unique slug constraint checks.
41 lines
556 B
Markdown
41 lines
556 B
Markdown
# 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.example` como referencia para `DATABASE_URL`.
|
|
|
|
---
|
|
|
|
Metadatos:
|
|
|
|
Autor: GitHub Copilot
|
|
|
|
Última actualización: 2026-02-07
|