Skip to content

DHBern/presentation_parzival

Repository files navigation

Parzival Presentation

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:

Requirements

  • Node.js 18+ (recommended: latest LTS)
  • npm
  • Docker

Development Setup

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).

  1. Install dependencies:
npm install
  1. Start Docker and launch the eXist-db container:
npm run docker:start
  1. Install the Parzival package into the running container:
npm run installXar
  1. Start the frontend in dev mode:
npm run dev

The app is available at the local Vite dev URL (usually http://localhost:5173).

To stop and remove the development container:

npm run docker:stop

Build and Preview

Note: npm run build is long-running and usually takes around 2 hours.

Create a production build:

npm run build

Preview the production build locally:

npm run preview

Useful Scripts

  • npm run check - type and Svelte checks
  • npm run lint - lint and formatting checks
  • npm run format - apply formatting