680cfa2bf59c7bc79f3960d0478093f4570ec020
pnpm 9 does not auto-run npm pre-* lifecycle scripts (enable-pre-post-scripts defaults to false), so the pre-migrate/pre-seed/pre-reset hooks added in the prior commit never executed under the Dockerfile entrypoint `pnpm --filter @groombook/db migrate`. Chain wait-for-db.mjs directly into the migrate/seed/reset scripts so the DNS pre-resolve actually runs on the real invocation path. Verified locally that `pnpm --filter @groombook/db migrate` now runs wait-for-db before drizzle-kit. (GRO-2163) 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%