5d6fb4b43c22483ea9eb877e48aa72c0459709f0
Fixes GRO-1962: - Random pet loop (lines 968-982): removed stale uc.petName references that caused runtime ReferenceError (uc declared ~80 lines later at line 1048) - UAT test clients loop: moved TestCooper/TestRocky deterministic checks inside the rand()<0.3 branch so they receive alerts ~30% of the time rather than 100% of the time (previously the checks fired before the random gate, always triggering) This gives a true ~30% medicalAlerts distribution across all pets, well within the TC-API-3.22 acceptance criteria band of 25-35%. 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%