backend
backend copied to clipboard
Prod Forge is an open-source reference that shows how to build and operate a production-ready system: AI-assisted development, quality gates, CI/CD, infrastructure, observability, migrations, and roll...
## What is wrong `src/common/utils/validate-config.util.ts` prints validation failures with `console.log` (lines 23 and 26, each behind an `eslint-disable-next-line no-console`) before throwing a generic error. ## Why it matters The config...
## What is wrong `src/config/database.config.ts` validates `DATABASE_USER` (line 53, `@IsString()`), name, password, port and the pool settings, but not `DATABASE_HOST`. `database-manager/generate-url.ts` (line 9) interpolates it straight into the connection URL....
## What is wrong The alert rules are threshold-based. Multi-window SLO burn-rate alerts (`roadmap.md` item) are not defined. ## Why it matters Burn-rate alerts react to how fast the error...
## What is wrong Prometheus rules exist but there is no Alertmanager, so alerts are visible in Grafana and Prometheus only and are not delivered anywhere. This is a `roadmap.md`...
## What is wrong The workflows under `.github/workflows` and `.github/actions` reference actions by tag, for example `actions/checkout@v6` and `aws-actions/configure-aws-credentials@v6`. This is a `roadmap.md` item. ## Why it matters A tag...
## What is wrong `Dockerfile` line 24 downloads `https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem` with `ADD` and trusts it through `NODE_EXTRA_CA_CERTS`. The file is not pinned, so any change at that URL is trusted silently....
## What is wrong `database-manager/schema.prisma` declares `@@index([userId, title])` on `Todo`, but no migration in `database-manager/migrations` creates it (only `20260305153122_init` exists). The trigram GIN indexes for the case-insensitive title and description...
## What is wrong The project test rules (`CLAUDE.md`) require negative cases first, in separate `describe` blocks from positive cases. Three specs break the order: - `src/api/client-logs/client-logs.controller.spec.ts`: a `positive cases`...
## What is wrong `.env.common` (lines 14-15) defines `SWAGGER_USERNAME` and `SWAGGER_PASSWORD`. Nothing reads them: `src/config/swagger.config.ts` only knows `SWAGGER_ENABLED` and `SWAGGER_ENDPOINT`, and neither name appears in `src`, the docs or the...
I ran [`nestjs-doctor`](https://github.com/RoloBits/nestjs-doctor) on this repo — it catches NestJS-specific issues that ESLint can't. ``` 94 / 100 ★★★★★ Excellent 1 error · 28 warnings · 9 info · 21/113...