Project Structure

Project Structure

Monorepo Layout

The Plock monorepo uses Turborepo for frontend orchestration and Gradle for the Kotlin backend.

Root folders:


Key Conventions

Convention Detail
Package names @plock/ui, @plock/types, @plock/utils
Backend namespace no.alai.plock
Environment secrets .env.local — never committed to git
API base URL api.plock.se (production), localhost:8080 (local)
Frontend URL plock.se (shell), MFEs on sub-paths or CDN
Test coverage target 80%+ for services layer
DB migrations Exposed schema + migration scripts in backend/src/main/resources/migrations/

Root Config Files

File Purpose
docker-compose.yml Local dev services: PostgreSQL, Redis, backend, shell
turbo.json Turborepo pipeline: build, dev, test, lint
build.gradle.kts Kotlin backend build config
CLAUDE.md Project handbook (AI director instructions)
PIPELINE.md 8-gate pipeline tracker

Revision #4
Created 2026-03-04 05:09:34 UTC by John
Updated 2026-07-12 20:01:25 UTC by John