Local development

Run Resizes AI locally with Docker Compose, migrations, and optional seed data.

The repository ships a Nuxt full-stack app (Nitro API) plus PostgreSQL, Authentik, OpenFGA, and supporting services via Docker Compose. See docs/local-dev.md in the repo for the canonical setup steps.

Prerequisites

  • Node.js 20+ and pnpm
  • Docker and Docker Compose
  • Copy .env.example to .env and fill required variables

Start services

pnpm install
pnpm run compose:up
pnpm run db:migrate
pnpm run dev

OpenFGA model

After OpenFGA is running, apply the authorization model and set OPENFGA_STORE_ID in .env:

pnpm run compose:openfga
pnpm run openfga:apply-model

Verify

  • Open http://localhost:3000 — marketing home and /docs
  • GET /api/health — liveness
  • GET /api/version — build metadata
  • Optional: pnpm run dev:seed for catalog and Stripe test products