c1d28635ba30d13f7945e854493639084f02bd69
Two pre-existing bugs prevented petsExtendedFields.test.ts from running: 1. vi.mock factory referenced bare `and`, `eq`, `exists`, `or` variables that are undefined at hoist time — replaced with inline mock functions 2. CLIENT_ID/PET_ID used non-UUID strings but Zod schema requires uuid() All 36 test files (521 tests) now pass. 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%