70 lines
1.0 KiB
Markdown
70 lines
1.0 KiB
Markdown
# ABE — Build, Test & Development Commands
|
|
|
|
## Install dependencies
|
|
```bash
|
|
npm install
|
|
cd frontend && npm install && cd ..
|
|
```
|
|
|
|
## Build (backend)
|
|
```bash
|
|
npm run build
|
|
```
|
|
|
|
## Build (frontend)
|
|
```bash
|
|
cd frontend && npm run build
|
|
```
|
|
|
|
## Test
|
|
```bash
|
|
npm run test
|
|
```
|
|
|
|
## Lint
|
|
```bash
|
|
npm run lint
|
|
```
|
|
|
|
## Type check
|
|
```bash
|
|
npm run typecheck
|
|
```
|
|
|
|
## Dev mode
|
|
```bash
|
|
npm run dev # backend con hot reload
|
|
cd frontend && npm run dev # frontend dev server
|
|
```
|
|
|
|
## Database
|
|
```bash
|
|
npm run db:migrate # ejecutar migraciones Kysely
|
|
```
|
|
|
|
## Docker
|
|
```bash
|
|
docker compose up -d --build
|
|
docker compose logs -f
|
|
docker compose down
|
|
```
|
|
|
|
## Verificación completa (ejecutar después de CADA tarea)
|
|
```bash
|
|
npm run build && cd frontend && npm run build && cd .. && npm run test
|
|
```
|
|
|
|
## Commit después de tarea completada
|
|
```bash
|
|
git add -A && git commit -m "fase(X.Y): descripción"
|
|
```
|
|
|
|
## Notas
|
|
- Source code: src/
|
|
- Frontend: frontend/
|
|
- Tests: junto al código (*.test.ts) o en tests/
|
|
- Reports output: reports/
|
|
- Logs: logs/
|
|
- Database: data/abe.db
|
|
|