Go to file
Sebastian Hugentobler 402b8e3a57
All checks were successful
Build Multiarch Container Image / call-reusable-workflow (push) Successful in 36m34s
shut down on ctrl+c
2024-07-10 20:56:48 +02:00
.gitea/workflows add containerfile and gitea ci 2024-07-10 15:36:25 +02:00
app shut down on ctrl+c 2024-07-10 20:56:48 +02:00
entity initial commit 2024-07-10 14:30:26 +02:00
migration initial commit 2024-07-10 14:30:26 +02:00
.containerignore add containerfile and gitea ci 2024-07-10 15:36:25 +02:00
.gitignore initial commit 2024-07-10 14:30:26 +02:00
Cargo.lock shut down on ctrl+c 2024-07-10 20:56:48 +02:00
Cargo.toml initial commit 2024-07-10 14:30:26 +02:00
Containerfile shut down on ctrl+c 2024-07-10 20:56:48 +02:00
COPYING add AGPL license 2024-07-10 14:50:59 +02:00
flake.lock initial commit 2024-07-10 14:30:26 +02:00
flake.nix initial commit 2024-07-10 14:30:26 +02:00
README.md disable registrations by default 2024-07-10 15:26:35 +02:00
rust-toolchain.toml initial commit 2024-07-10 14:30:26 +02:00

Hesinde Sync

A reimplementation of the Koreader Sync Server because I wanted to try poem openapi.

Building

Nix

A nix environment with enabled nix-commands in order to use nix develop.

Run nix develop to be dropped into a shell with everything installed and configured. From there all the usual cargo commands are accessible.

Classic

A recent rust installation is all that is needed.

From there on cargo run and cargo build and so on can be used.

Usage

Usage: hesinde-sync [OPTIONS]

Options:
  -a, --address <ADDRESS>              Address to listen on [env: ADDRESS=] [default: localhost:3030]
  -d, --db-connection <DB_CONNECTION>  From which file to read the database connection string ("-" for stdin) [env: DB_CONNECTION=] [default: -]
  -a, --allow-registering              Whether new users can register [env: ALLOW_REGISTERING=]
  -h, --help                           Print help
  -V, --version                        Print version

The url for koreader is http://<ADDRESS>/api.