This repository contains the SvelteKit frontend for presenting the Parzival digital edition. It is built as a static site and uses data generated by the Parzival static API:
- Node.js 18+ (recommended: latest LTS)
- npm
- Docker
For development mode, Docker must be running. The project depends on an eXist-db container and the Parzival XAR package, so you need to run installXar before starting the dev server.
Note: installXar currently only works in Linux environments (including WSL).
- Install dependencies:
npm install- Start Docker and launch the eXist-db container:
npm run docker:start- Install the Parzival package into the running container:
npm run installXar- Start the frontend in dev mode:
npm run devThe app is available at the local Vite dev URL (usually http://localhost:5173).
To stop and remove the development container:
npm run docker:stopNote: npm run build is long-running and usually takes around 2 hours.
Create a production build:
npm run buildPreview the production build locally:
npm run previewnpm run check- type and Svelte checksnpm run lint- lint and formatting checksnpm run format- apply formatting