chore: rename springboot app folder to backend (#752)

This commit is contained in:
James Ward
2026-04-22 17:27:44 -04:00
committed by Zach Yale
parent 9c92f54f16
commit 1a664dda14
1269 changed files with 32 additions and 32 deletions
+2 -2
View File
@@ -14,5 +14,5 @@ frontend/node_modules
frontend/test-results
frontend/tmp
booklore-api/.gradle
booklore-api/build
backend/.gradle
backend/build
+1 -1
View File
@@ -2,7 +2,7 @@ version: 2
updates:
# Backend – Gradle (Java / Spring)
- package-ecosystem: "gradle"
directory: "/booklore-api"
directory: "/backend"
schedule:
interval: "weekly"
day: "friday"
+3 -3
View File
@@ -56,7 +56,7 @@ jobs:
HEAD_REF: ${{ steps.normalize_refs.outputs.head_ref }}
run: |
echo "Comparing ${BASE_REF}...${HEAD_REF}"
if git diff --name-only "${BASE_REF}...${HEAD_REF}" | grep -Eq "^booklore-api/src/main/resources/db/migration/V.*\\.sql$"; then
if git diff --name-only "${BASE_REF}...${HEAD_REF}" | grep -Eq "^backend/src/main/resources/db/migration/V.*\\.sql$"; then
echo "Migration file changes detected. Proceeding with migration preview."
echo "has_migrations=true" >> "$GITHUB_OUTPUT"
else
@@ -101,7 +101,7 @@ jobs:
flyway/flyway:12.1.0 \
-url=jdbc:mariadb://127.0.0.1:3306/booklore_test \
-user=root -password=root \
-locations=filesystem:/flyway/sql/booklore-api/src/main/resources/db/migration \
-locations=filesystem:/flyway/sql/backend/src/main/resources/db/migration \
migrate
- name: Checkout Head Branch
@@ -121,7 +121,7 @@ jobs:
flyway/flyway:12.1.0 \
-url=jdbc:mariadb://127.0.0.1:3306/booklore_test \
-user=root -password=root \
-locations=filesystem:/flyway/sql/booklore-api/src/main/resources/db/migration \
-locations=filesystem:/flyway/sql/backend/src/main/resources/db/migration \
migrate
- name: Confirm Flyway Dry Run Success
+4 -4
View File
@@ -52,7 +52,7 @@ jobs:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('booklore-api/**/*.gradle*', 'booklore-api/settings.gradle*', 'booklore-api/gradle.properties', 'booklore-api/gradle/wrapper/gradle-wrapper.properties') }}
key: gradle-${{ runner.os }}-${{ hashFiles('backend/**/*.gradle*', 'backend/settings.gradle*', 'backend/gradle.properties', 'backend/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-
@@ -77,7 +77,7 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
if: ${{ always() && inputs.publish_test_results }}
with:
files: booklore-api/build/test-results/**/*.xml
files: backend/build/test-results/**/*.xml
check_name: Backend Test Results
- name: Upload Backend Test Reports
@@ -86,8 +86,8 @@ jobs:
with:
name: backend-test-reports
path: |
booklore-api/build/reports/tests/
booklore-api/build/test-results/
backend/build/reports/tests/
backend/build/test-results/
retention-days: 30
- name: Save Gradle Cache
+1 -1
View File
@@ -49,7 +49,7 @@ frontend/output/
frontend/playwright-report/
frontend/.playwright-browsers/
frontend/node_modules/
booklore-api/src/main/resources/application-local.yaml
backend/src/main/resources/application-local.yaml
/shared/
/scratch
+1 -1
View File
@@ -11,7 +11,7 @@
## Project Structure
- **Backend (`booklore-api/`)**
- **Backend (`backend/`)**
- Application code: `src/main/java`
- Resources and Flyway migrations: `src/main/resources`
- Tests: `src/test/java`
+1 -1
View File
@@ -149,7 +149,7 @@ you have an issue to work on.
Grimmory has two distinct codebases, each with their own conventions:
- **Backend** (Java / Spring Boot): [booklore-api/DEVELOPMENT.md](booklore-api/DEVELOPMENT.md)
- **Backend** (Java / Spring Boot): [backend/DEVELOPMENT.md](backend/DEVELOPMENT.md)
- **Frontend** (TypeScript / Angular): [frontend/DEVELOPMENT.md](frontend/DEVELOPMENT.md)
If your change touches both, read both.
+2 -2
View File
@@ -10,7 +10,7 @@ work.
```
grimmory/
├── frontend/ # Angular frontend (TypeScript, PrimeNG)
├── booklore-api/ # Spring Boot backend (Java 25, Gradle)
├── backend/ # Spring Boot backend (Java 25, Gradle)
├── deploy/ # Compose, Helm, and Podman deployment examples
├── packaging/docker/ # Container runtime assets used by the Docker build
├── dev.docker-compose.yml # Development Docker stack
@@ -44,7 +44,7 @@ just image-build # Build the production image locally
Use this document for repo-level workflow, then drop into the component-specific guides when working
inside a project:
- Backend: [booklore-api/DEVELOPMENT.md](booklore-api/DEVELOPMENT.md)
- Backend: [backend/DEVELOPMENT.md](backend/DEVELOPMENT.md)
- Frontend: [frontend/DEVELOPMENT.md](frontend/DEVELOPMENT.md)
---
+6 -6
View File
@@ -18,16 +18,16 @@ FROM --platform=$BUILDPLATFORM gradle:9.4.1-jdk25-alpine AS backend-build
ARG TARGETARCH
WORKDIR /workspace/booklore-api
WORKDIR /workspace/backend
COPY booklore-api/gradlew booklore-api/gradlew.bat booklore-api/build.gradle.kts booklore-api/settings.gradle.kts ./
COPY booklore-api/gradle ./gradle
COPY backend/gradlew backend/gradlew.bat backend/build.gradle.kts backend/settings.gradle.kts ./
COPY backend/gradle ./gradle
RUN chmod +x ./gradlew
RUN --mount=type=cache,target=/home/gradle/.gradle \
./gradlew --no-daemon dependencies
COPY booklore-api/ ./
COPY backend/ ./
COPY --from=frontend-build /workspace/frontend/dist/grimmory/browser /tmp/frontend-dist
RUN --mount=type=cache,target=/home/gradle/.gradle \
@@ -35,7 +35,7 @@ RUN --mount=type=cache,target=/home/gradle/.gradle \
RUN set -eux; \
jar_path="$(find build/libs -maxdepth 1 -name '*.jar' ! -name '*plain.jar' | head -n 1)"; \
cp "$jar_path" /workspace/booklore-api/app.jar
cp "$jar_path" /workspace/backend/app.jar
FROM mwader/static-ffmpeg:8.1 AS ffprobe-layer
@@ -93,7 +93,7 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
COPY --from=ffprobe-layer /ffprobe /usr/local/bin/ffprobe
COPY --from=kepubify-layer /kepubify /usr/local/bin/kepubify
COPY --from=backend-build /workspace/booklore-api/app.jar /app/app.jar
COPY --from=backend-build /workspace/backend/app.jar /app/app.jar
ARG APP_VERSION=development
ARG APP_REVISION=unknown
+1 -1
View File
@@ -1,6 +1,6 @@
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
mod api 'booklore-api/Justfile'
mod api 'backend/Justfile'
mod ui 'frontend/Justfile'
mod release 'tools/release/Justfile'
+2 -2
View File
@@ -186,10 +186,10 @@ Contributor workflow, PR policy, and release semantics live in [CONTRIBUTING.md]
General purpose development guidelines live in [DEVELOPMENT.md](DEVELOPMENT.md). Component-specific implementation guidance lives in:
- [`booklore-api/DEVELOPMENT.md`](booklore-api/DEVELOPMENT.md)
- [`backend/DEVELOPMENT.md`](backend/DEVELOPMENT.md)
- [`frontend/DEVELOPMENT.md`](frontend/DEVELOPMENT.md)
The root [`Justfile`](Justfile) is the primary local command surface and mirrors the folder-local `booklore-api/Justfile` and `frontend/Justfile` entrypoints.
The root [`Justfile`](Justfile) is the primary local command surface and mirrors the folder-local `backend/Justfile` and `frontend/Justfile` entrypoints.
```bash
just # Show root + api + ui recipes
@@ -1,6 +1,6 @@
# Grimmory API Development
This document is the canonical development guide for `booklore-api`. It covers the local command
This document is the canonical development guide for the Grimmory `backend`. It covers the local command
surface, setup expectations, build and test workflows, and backend-specific conventions.
For repository-wide contribution policy, branch strategy, PR requirements, and release semantics, start
@@ -9,7 +9,7 @@ see [../DEVELOPMENT.md](../DEVELOPMENT.md).
## Project Scope
The `booklore-api` project is the Spring Boot backend for Grimmory. It owns the HTTP API, database
The `backend` project is the Spring Boot backend for Grimmory. It owns the HTTP API, database
migrations, background processing, authentication, and the packaged runtime jar used by the production
container.
@@ -51,7 +51,7 @@ The backend expects a MariaDB instance and a local `application-dev.yml` with yo
storage paths. The common backend loop is:
```bash
cd booklore-api
cd backend
just run
```
View File
View File
+1
View File
@@ -0,0 +1 @@
rootProject.name = "backend"

Some files were not shown because too many files have changed in this diff Show More