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
This commit is contained in:
James Cox
2026-04-22 17:26:35 -04:00
committed by Zach Yale
parent 6ff7275db8
commit 69d50d4fb5
15 changed files with 590 additions and 126 deletions
+49 -34
View File
@@ -1,59 +1,74 @@
# Grimmory
# Grimmory UI
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.0.2.
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.
## Development server
## Stack
To start a local development server, run:
- 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
ng serve
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
```
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
## Code scaffolding
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
The repository root exposes the same recipes through the `ui` namespace:
```bash
ng generate component component-name
just ui install
just ui install-ci
just ui dev
just ui test
just ui check
just ui lint
```
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
## Running Locally
```bash
ng generate --help
cd booklore-ui
just install
just dev
```
## Building
The development server runs on port `4200` by default.
To build the project run:
## Build and Test
```bash
ng build
just build
just check
just test
just coverage
just lint
```
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
The production output is written to `dist/grimmory/` and is consumed by the backend packaging flow when building the all-in-one production image.
## Running unit tests
Use `just ci-check` when you want the stricter CI-style flow from a clean install, including the severity-gated audit step.
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
## UI-Specific Notes
```bash
ng test
```
- 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.
## Running end-to-end tests
## More Detail
For end-to-end (e2e) testing, run:
```bash
ng e2e
```
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
## Additional Resources
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
Frontend-specific contributor rules and conventions live in [CONTRIBUTING.md](CONTRIBUTING.md).