* build: drop unrar from dockerfile * build: add libarchive to dockerfile * ci: add libarchive for tests * build: try adding to the gradle build * refactor: use nightcompress for reading CBX * test: disable tests using nightcompress when unavailable * ci: drop showing java information * build: add libarchive to dev compose * build: fix libarchive link in alpine seems alpine doesn't create libarchive.so and this seems to be the easiest approach to fix that * build: use expected order for allowing java to use native libs * fix: ensure we initialize NightCompress before using it * fix: properly find input stream * fix: return amount of data copied * test: add helper to turn off tests in ArchiveService * test: rewrite CbxMetadataExtractorTest to mock archiveService * refactor: expose `Path` to make `CbxMetadataExtractor` easier to test * test: drop now useless test * test: add archiveservice to rar5 integration * test: mock out archiveservice in cbxreader test * test: use real archiveservice in cbxconverstionintegration * file: the cbxconversionservicetest also seems to be integration * test: remove unused imports from cbxmetadataextractortest * test: cbxcomicinfocompliance is also an integration * test: cbxmetadatawriter is also integration * chore: drop unused properties * test: make cbxmetadataextractortest do something for covers before it was basically useless because of fallback * fix: invert check * chore: better comment * test: fix more cbxmetadataextractor tests that never worked * test: we only ever raise ioexception * fix: handle `null` comicinfo when parsing * test: properly test for no files comicinfo * build: manual link of dev docker compose * test: if you use any matchers, all must be * build: drop unrar from dev compose * test: if you use any matchers, all must be * test: always get a fresh stream * test: drop more toFile
Grimmory API
The booklore-api project is the Spring Boot backend for Grimmory. It owns the HTTP API, database migrations, background processing, authentication, and the packaged runtime jar that the production container runs.
Stack
- Java 25
- Spring Boot 4
- Gradle Wrapper
- Spring Data JPA + Flyway
- MariaDB in production, H2 for selected tests
- JUnit 5, Mockito, AssertJ, JaCoCo
Local Command Surface
Use Justfile when possible. It is the primary backend command surface for both humans and agents.
just # List backend recipes
just run # Start bootRun with the dev profile
just test # Run the backend test suite
just coverage # Run tests and generate JaCoCo output
just check # Run the Gradle check lifecycle
just tasks # Show available Gradle tasks
The repository root also exposes the same recipes through namespacing:
just api test
just api run
just api coverage
Running Locally
The backend expects a MariaDB instance and a local application-dev.yml with your database and storage paths. The higher-level setup lives in ../CONTRIBUTING.md, but the common backend loop is:
cd booklore-api
just run
If you need a different Spring profile:
just run profile=local
Build and Test
just build
just test
just coverage
just check
The frontend bundle is consumed during packaging when the UI build output exists. For normal backend-only development and test runs, the frontend resources are optional.
Packaging Notes
- The production container image is built from the repository root
Dockerfile. - That Docker build compiles the UI first and passes the resolved frontend dist path into the backend build.
- The backend jar remains the packaged application artifact for the current all-in-one runtime model.
More Detail
Backend-specific contributor rules and conventions live in CONTRIBUTING.md.