6d1b001fe5a67938a05f857b7a58fd9bd0354cac
The apps/api/src/db/seed.ts file was a stale duplicate of packages/db/src/seed.ts
and did not carry the withSeedAdvisoryLock helper from the GRO-2123 fix.
Cleanup details:
* Delete apps/api/src/db/seed.ts (1349 lines). The reset CronJob's Dockerfile
`reset` stage runs `pnpm --filter @groombook/db reset` from packages/db/,
so this file was never on the runtime path. The deployed tree (./src) is
also unaffected.
* Update apps/api/package.json `db:seed` and `db:reset` scripts to delegate
to `pnpm --filter @groombook/db {seed,reset}` to match the Dockerfile
pattern and preserve the local-dev UX (these previously pointed at the
deleted src/db/seed.ts via tsx).
Security review: GRO-2128 LOW-1 (informational).
Co-Authored-By: Paperclip <noreply@paperclip.ing>
GroomBook API
GroomBook API service — extracted from the groombook/app monorepo.
Overview
This repository contains the GroomBook API service, including:
- REST API endpoints
- Database schema and migrations (via Drizzle ORM)
- Authentication (via Better Auth)
- Background job handlers
Structure
src/ # API service source
packages/db/ # Database schema, migrations, and utilities
packages/types/ # Shared TypeScript types
Setup
pnpm install
cp .env.example .env # Fill in required environment variables
pnpm --filter @groombook/api dev
Docker
docker build -t ghcr.io/groombook/api:latest .
docker run -p 3000:3000 ghcr.io/groombook/api:latest
License
AGPL-3.0-only
Description
Languages
TypeScript
99.3%
JavaScript
0.4%
Dockerfile
0.2%