Verse4Verse¶
a Hymn Hop Lyrical Bible Study.
Christian hip hop and gospel metadata and Scripture reading, with future studies ending in a concrete Live-it action. Scaffold scope and deferred features: SPEC. Ticket: FLT-281.
Run locally¶
Requires .NET 10 and Node 24.15+ (below 25). The database is DuckDB, through the vendored JonesGaffney.EntityFrameworkCore.DuckDB provider (nuget/local); no database server or Docker is needed for development.
- The shipped Api and Worker reference only the managed
DuckDB.NET.Databinding, so they need a native DuckDB next to them. On Windows,dotnet restore(the test projects pullDuckDB.NET.Data.Full) leaves one at~/.nuget/packages/duckdb.net.bindings.full/1.5.6.1/runtimes/win-x64/native/duckdb.dll; pass it as-p:DuckDBNativeLibrary=<path>todotnet build/dotnet runand it is copied to the output.scripts/dev-api.ps1does this for you. Production does not use that 1.5.6 build: the container image copieslibduckdb.sov2.0.0 (built by andrewjonesdev-tools/duckdb-native) from GCS into the app directory. - Point both apps at a local file:
ConnectionStrings__DuckDB=Data Source=<repo>/data/dev.duckdb(gitignored;Data Source=:memory:also works for throwaway runs). Production instead setsQuack__Uri=quack:10.10.0.10andQuack__Token(from Secret Manager): the app opens an in-memory DuckDB and attaches the remote catalog over Quack. The token is never logged. - Create or upgrade the schema with the separate migration job, never at startup:
dotnet run --project src/Verse4Verse.Worker "-p:DuckDBNativeLibrary=<path>" -- migrate. It applies the reviewed, forward-only, idempotent SQL indb/migrations/<module>/NNNN_<name>.sqlthrough the provider's script runner; a second run reportsup to dateand changes nothing. After a model change, regenerate withdotnet run --project tools/Verse4Verse.DbDesign -- add catalog|scripture <Name>, rebuild, then-- script catalog|scripture, and commit the new SQL (the migration tests fail on drift). - Import testing translations from the repository root:
dotnet src/Verse4Verse.Worker/bin/Release/net10.0/Verse4Verse.Worker.dll import-all --manifest data/bibles/manifest.json. Single-file command:import-usfx --code CODE --name NAME --language ISO --license TEXT --source URL --file PATH [--dialect LABEL]. Imports fail clearly on an unmigrated database. Existing codes fail clearly;--replacereplaces each translation atomically. See Bible inventory. - To enable fictional metadata seeds, set
ASPNETCORE_ENVIRONMENT=DevelopmentandSeedCatalog=true, then runscripts/dev-api.ps1(ordotnet run --project src/Verse4Verse.Api -- --urls http://localhost:5000). Seeding writes rows only; it never changes the schema. - In
web, the reviewer runsnpm ci, thennpm start. The development proxy forwards/apito port 5000. Production web hosting must proxy/apito the API on the same origin. dotnet run --project src/Verse4Verse.Workerstarts the heartbeat. No outbox execution exists yet.
Deploy (Cloud Run)¶
pwsh -File scripts/deploy-app.ps1 builds one image (src/Verse4Verse.Api/Dockerfile: the API serving the Angular build with Web:Serve=true, plus the Worker), rolls verse4verse-app to it, and runs two Cloud Run Jobs from the same image: v4v-migrate (Worker migrate) then v4v-import (Worker import-release: the public-domain WEB and BSB plus the dialect Bibles the manifest offers with "offer": true, then the catalog seed; see Stage 2d). It refuses any gcloud account but andrewjonesdev1@gmail.com, keeps the env Terraform set on the service, and smoke-tests /health, /health/ready, /api/studies and /api/catalog/songs. The script header lists every step and parameter. In Production the API refuses to start unless DuckDB opens on v2.0.0 (/health/ready runs the same check) and the editorial data folders exist. The production catalog rule approves only verified christian-only "keep" songs; crossover, secular-seed and uncertain songs stay pending for review (catalog policy).
Validate¶
dotnet restore
dotnet build -c Release
dotnet test -c Release
cd web
npm ci
npm run build
npm test -- --watch=false
Persistence is DuckDB (each module keeps its own schema: catalog, scripture). Tests use in-memory DuckDB from DuckDB.NET.Data.Full; licensed Bible Brain text is never stored (LicensedTextStorageTests). The eleven placeholder modules register nothing; each README records its future schema. Module architecture tests prohibit project references between modules. Angular/TypeScript is the required frontend stack; Capacitor configuration is TypeScript as required by Capacitor.
Brand assets already present in this worktree are preserved. The kente band references web/src/assets/brand/kente-strip.png. Archivo, Inter and Source Serif 4 variable fonts are bundled through @fontsource-variable packages; no font CDN requests are made.
No authentication, accounts, content writes, moderation execution, artist verification, or third-party API integrations are implemented. CI security gates require the private repository's gitleaks/CodeQL entitlements and fail visibly if unavailable.