major: Rename legalconsenthub to gremiumhub
This commit is contained in:
31
CLAUDE.md
31
CLAUDE.md
@@ -1,4 +1,4 @@
|
||||
# Legal Consent Hub - AI Context
|
||||
# GremiumHub - AI Context
|
||||
|
||||
## Overview
|
||||
|
||||
@@ -73,9 +73,9 @@ ApplicationForm
|
||||
## Project Structure
|
||||
|
||||
```
|
||||
legalconsenthub/ # Frontend (Nuxt 4, Vue 3) - see legalconsenthub/CLAUDE.md
|
||||
api/ # OpenAPI spec - see api/CLAUDE.md
|
||||
legalconsenthub-backend/ # Backend (Spring Boot, Kotlin) - see legalconsenthub-backend/CLAUDE.md
|
||||
gremiumhub/ # Frontend (Nuxt 4, Vue 3) - see gremiumhub/CLAUDE.md
|
||||
api/ # OpenAPI spec - see api/CLAUDE.md
|
||||
gremiumhub-backend/ # Backend (Spring Boot, Kotlin) - see gremiumhub-backend/CLAUDE.md
|
||||
```
|
||||
|
||||
---
|
||||
@@ -84,20 +84,20 @@ legalconsenthub-backend/ # Backend (Spring Boot, Kotlin) - see legalconsen
|
||||
|
||||
```bash
|
||||
# Frontend (port 3001)
|
||||
cd legalconsenthub && pnpm install && pnpm run dev
|
||||
cd gremiumhub && pnpm install && pnpm run dev
|
||||
|
||||
# Backend (port 8080)
|
||||
cd legalconsenthub-backend && ./gradlew bootRun
|
||||
cd gremiumhub-backend && ./gradlew bootRun
|
||||
|
||||
# Generate API clients (REQUIRED after modifying api/legalconsenthub.yml)
|
||||
cd legalconsenthub && pnpm run api:generate # Frontend TypeScript client
|
||||
cd legalconsenthub-backend && ./gradlew generate_legalconsenthub_server # Backend Kotlin server stubs
|
||||
# Generate API clients (REQUIRED after modifying api/gremiumhub.yml)
|
||||
cd gremiumhub && pnpm run api:generate # Frontend TypeScript client
|
||||
cd gremiumhub-backend && ./gradlew generate_gremiumhub_server # Backend Kotlin server stubs
|
||||
```
|
||||
|
||||
**⚠️ CRITICAL: API Client Regeneration**
|
||||
After ANY change to `api/legalconsenthub.yml`, you MUST regenerate BOTH clients:
|
||||
After ANY change to `api/gremiumhub.yml`, you MUST regenerate BOTH clients:
|
||||
1. Frontend: `pnpm run api:generate` (TypeScript client)
|
||||
2. Backend: `./gradlew generate_legalconsenthub_server` (Kotlin server stubs)
|
||||
2. Backend: `./gradlew generate_gremiumhub_server` (Kotlin server stubs)
|
||||
|
||||
Compilation/runtime will fail if clients are out of sync with the OpenAPI spec.
|
||||
|
||||
@@ -107,7 +107,7 @@ Compilation/runtime will fail if clients are out of sync with the OpenAPI spec.
|
||||
|
||||
| File | Purpose |
|
||||
|------|---------|
|
||||
| `api/legalconsenthub.yml` | OpenAPI spec (source of truth) |
|
||||
| `api/gremiumhub.yml` | OpenAPI spec (source of truth) |
|
||||
| `.github/workflows/pipeline.yaml` | CI/CD workflow |
|
||||
|
||||
See subproject CLAUDE.md files for component-specific key files.
|
||||
@@ -117,9 +117,9 @@ See subproject CLAUDE.md files for component-specific key files.
|
||||
## Rules for AI
|
||||
|
||||
1. **API-first workflow** - ALWAYS follow this sequence when modifying APIs:
|
||||
a. Modify `api/legalconsenthub.yml` OpenAPI spec first
|
||||
b. Regenerate frontend client: `cd legalconsenthub && pnpm run api:generate`
|
||||
c. Regenerate backend stubs: `cd legalconsenthub-backend && ./gradlew generate_legalconsenthub_server`
|
||||
a. Modify `api/gremiumhub.yml` OpenAPI spec first
|
||||
b. Regenerate frontend client: `cd gremiumhub && pnpm run api:generate`
|
||||
c. Regenerate backend stubs: `cd gremiumhub-backend && ./gradlew generate_gremiumhub_server`
|
||||
d. **Update backend entity class AND mapper class** for every new DTO field — fields missing from the entity silently return `null` from the API. If the new field requires database storage, note that a SQL migration is needed (the user handles migrations).
|
||||
e. Implement backend controller methods (they implement generated interfaces)
|
||||
f. Use generated client in frontend (never write manual API calls)
|
||||
@@ -127,6 +127,7 @@ See subproject CLAUDE.md files for component-specific key files.
|
||||
3. **Form structure is 3-level** - Section → SubSection → Element
|
||||
4. **Roles managed in Keycloak** - Not in application database
|
||||
5. **Subproject-specific rules** - See `CLAUDE.md` files in each subproject directory
|
||||
6. **Don't create worktrees, don't commit** - Directly modify the main branch. The user will handle branching and PRs.
|
||||
|
||||
### Code Style
|
||||
- Order functions top-down by abstraction (public API first, helpers below)
|
||||
|
||||
Reference in New Issue
Block a user