Skip to content

Repository files navigation

Papyrus

This repository is the development entry point for Papyrus.

Prerequisites

Clone

Clone the repository with its submodules:

git clone --recurse-submodules https://github.com/PapyrusReader/papyrus.git
cd papyrus

If the repository was cloned without --recurse-submodules, initialize the projects afterward:

git submodule update --init --recursive

Set up the workspace

In VS Code, run the Setup workspace task once. It installs the client and server dependencies, creates missing local configuration from the supplied examples, generates development PowerSync keys, starts the prerequisite containers, applies database migrations, and configures PowerSync replication. You can also run the setup script directly in a terminal as ./.vscode/setup.sh.

Run Papyrus

Run these VS Code tasks independently, in order:

  1. Storage
  2. Back-end
  3. Client

The services are then available at:

The equivalent terminal commands are:

cd server
docker compose up database mailpit powersync-storage powersync
cd server
uv run uvicorn papyrus.main:app --reload --host 0.0.0.0 --port 8080
cd client/app
flutter run -d chrome \
  --web-hostname papyrus.localhost \
  --web-port 3000 \
  --dart-define-from-file=.dart_defines

Reset the workspace

The Purge task deletes local Papyrus databases, uploaded media, PowerSync state, and browser storage before recreating clean service state.

About

Development workspace for the Papyrus project.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors