7af16ee4e61e6a2516bb19918298e4107dcb0c46
GRO-2722: packages/db/src/reset.ts and apps/api/src/db/reset.ts no longer emit any DROP TABLE / DROP TYPE / DROP SCHEMA / DROP DATABASE DDL. The four destructive DO-blocks are replaced with a single: TRUNCATE <all public tables> RESTART IDENTITY CASCADE Table names are enumerated dynamically via pg_tables WHERE schemaname='public' so new tables are picked up automatically. The drizzle schema and __drizzle_migrations table are untouched (different schema), keeping drizzle-kit migrate a no-op on an already-migrated DB. Preserves: production guard (NODE_ENV=production && ALLOW_RESET!='true'), advisory lock, migrations (drizzle-kit migrate), and seed (runSeedBody). Fixes the GRO-2678 prod outage root cause. Co-Authored-By: Paperclip <noreply@paperclip.ing>
GRO-2294: Route Optimization security hardening (geocode-batch limit cap + redact settings secret) (#193)
GRO-2294: Route Optimization security hardening (geocode-batch limit cap + redact settings secret) (#193)
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.4%
JavaScript
0.3%
Dockerfile
0.2%