Files
grimmory/booklore-ui/README.md
T
James Cox 69d50d4fb5 feat(devex): add a unified just command surface
- Command surface:
  - add a root `Justfile` with namespaced `api`, `ui`, and `release` modules so humans and agents can use the same entrypoints from the repo root
  - add project-local Justfiles for `booklore-api`, `booklore-ui`, and `tools/release` so each area remains self-contained and can still be driven from inside its own directory
  - standardize local developer workflows around `just check`, `just test`, `just api run`, `just ui dev`, `just db-up`, and `just image-build`

- Workflow integration:
  - update the reusable test suite workflow to install `just` and run backend and frontend CI steps through the Justfiles instead of hardcoded shell commands
  - update the semantic-release workflows to install `just` and invoke release tooling via `just release install`, `just release preview`, and `just release run`
  - keep the Docker image publication workflows on the native Docker actions while moving the project-command logic into the canonical command surface

- Documentation:
  - split backend and frontend implementation guidance into `booklore-api/README.md`, `booklore-api/CONTRIBUTING.md`, `booklore-ui/README.md`, and `booklore-ui/CONTRIBUTING.md`
  - simplify the top-level `README.md` and `CONTRIBUTING.md` so they stay focused on overview, policy, and navigation while pointing to component-specific guides for deeper detail
  - align contributor-facing examples on the `just` interface instead of mixing ad hoc Gradle, npm, Docker, and Compose commands

- Developer environment:
  - add `mise.toml` to pin the expected Java and Node toolchain versions for local work
  - switch the development Compose defaults from the old Booklore database values to Grimmory-oriented defaults
  - keep the command layout ready for a future API/UI split without forcing that packaging change yet
2026-04-22 17:26:35 -04:00

75 lines
2.0 KiB
Markdown

# Grimmory UI
The `booklore-ui` project is the Angular frontend for Grimmory. It owns the browser application, component styling, client-side routing, stateful UI interactions, and the compiled bundle that is packaged into the current production image.
## Stack
- Angular 21
- TypeScript
- PrimeNG + PrimeIcons
- Transloco for i18n
- Vitest for unit tests
- Angular ESLint
## Local Command Surface
Use [`Justfile`](Justfile) when possible. It is the primary frontend command surface for both humans and agents.
```bash
just # List frontend recipes
just install # Install or update dependencies for local development
just install-ci # Install dependencies exactly as CI does
just dev # Start the Angular dev server
just test # Run the frontend test suite
just check # Run the standard local verification pass
just lint # Run the frontend linter
just build # Build the production bundle
```
The repository root exposes the same recipes through the `ui` namespace:
```bash
just ui install
just ui install-ci
just ui dev
just ui test
just ui check
just ui lint
```
## Running Locally
```bash
cd booklore-ui
just install
just dev
```
The development server runs on port `4200` by default.
## Build and Test
```bash
just build
just check
just test
just coverage
just lint
```
The production output is written to `dist/grimmory/` and is consumed by the backend packaging flow when building the all-in-one production image.
Use `just ci-check` when you want the stricter CI-style flow from a clean install, including the severity-gated audit step.
## UI-Specific Notes
- This project uses standalone Angular components.
- Dependency injection should use `inject()`.
- Styling uses SCSS.
- UI strings live in `src/i18n/`.
- The current production bundle is still packaged into the backend jar during the root Docker build.
## More Detail
Frontend-specific contributor rules and conventions live in [CONTRIBUTING.md](CONTRIBUTING.md).