# MAF Fastify API

External backend service for the MAF Form Builder + Master Data Platform.

## Scope

- `GET /api/forms/schema`
- `GET /api/master-data`
- `POST /api/forms/submissions`
- PostgreSQL submission persistence model and migrations
- Cache-first strategy for schema/master data
- Role-based authorization middleware and circuit breaker primitive

## Run

```bash
pnpm install
pnpm dev
```

Copy `.env.example` to `.env` and update connection values first.
