chore: scaffold Nuxt 4 app with Postgres, tooling and health route

Nuxt 4 (app/ structure) + TypeScript, ESLint, Vitest + @nuxt/test-utils,
Drizzle + pg, a /api/health route with a DB ping, and a dev docker-compose
(app + Postgres). Verified: pnpm test, lint, and build pass; the built
server answers /api/health.
This commit is contained in:
Julien Calixte
2026-05-27 22:16:46 +02:00
parent e81ee53f7b
commit c13f3deeff
21 changed files with 10255 additions and 0 deletions

35
docker-compose.yml Normal file
View File

@@ -0,0 +1,35 @@
services:
app:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
environment:
DATABASE_URL: postgres://andon:andon@db:5432/andon
HOST: 0.0.0.0
depends_on:
db:
condition: service_healthy
volumes:
- .:/app
- /app/node_modules
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: andon
POSTGRES_PASSWORD: andon
POSTGRES_DB: andon
ports:
- "5432:5432"
volumes:
- andon_pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U andon"]
interval: 5s
timeout: 5s
retries: 5
volumes:
andon_pgdata: