a0a75d7e25dbb7b86574f257ab325c96443ec7ef
Adds a seeding step after UAT staff creation that: - Creates Better-Auth user records (emailVerified: true) for 4 UAT accounts - Creates account records with providerId="credential" and scrypt-hashed passwords - Links staff.userId for accounts with existing staff records (super, groomer, tester) - Reads passwords from SEED_UAT_*_PASSWORD env vars (guard clause skips if unset) - Is fully idempotent (upsert-safe) Bypasses Authentik SSO for UAT login; Shedward can authenticate via POST /api/auth/sign-in/email using the same UAT password secrets. 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
apps/api/ # 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%