Flea Flicker 3e22cc4243
CI / Lint & Typecheck (pull_request) Successful in 28s
CI / Test (pull_request) Successful in 28s
CI / Build & Push Docker Images (pull_request) Successful in 1m2s
feat(GRO-2156): travel buffer + reorder endpoint (Phase 2.2)
- Apply travel buffer between consecutive stops (default 15 / businessSettings.defaultTravelBufferMins); first stop carries bufferMins 0
- detectScheduleConflicts: flag tight schedule when appointment gap < travelMins + bufferMins; never auto-move appointments
- PATCH /api/routes/:routeId/reorder — validate permutation of current stops, persist new stopOrder (two-pass to avoid unique collision), re-estimate legs, re-apply buffers, recompute totals
- Return route + per-stop conflict flags + hasConflicts/conflictCount on /daily, /optimize, /reorder
- Unit tests for detectScheduleConflicts + recomputeLegsForOrder; UAT_PLAYBOOK §4.17

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-08 18:05:50 +00:00
2026-05-14 17:42:22 +00:00

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

S
Description
GroomBook API service (extracted from groombook/app monorepo)
Readme 3.8 MiB
Languages
TypeScript 99.3%
JavaScript 0.4%
Dockerfile 0.2%