vault-link/sync-server
Andras Schmelczer 4d4ffa160a
Some checks failed
Check / build (pull_request) Has been cancelled
E2E tests / build (pull_request) Has been cancelled
Publish CLI / publish-docker (pull_request) Has been cancelled
Publish server Docker image / publish-docker (pull_request) Has been cancelled
Add history-ui workspace and supporting server endpoints
Splits history-ui out of asch/fix-everything into its own branch off
main. Includes the Svelte workspace, the three dedicated server
endpoints (list_vaults, fetch_vault_history, fetch_document_versions),
SPA asset embedding via rust-embed, and the matching TS mirror types in
sync-client.

Note: this branch will not compile against main on its own — the new
endpoints depend on database/error/config additions that live on
asch/fix-everything. Intended to be merged once asch/fix-everything
lands.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-09 11:37:22 +01:00
..
src Add history-ui workspace and supporting server endpoints 2026-05-09 11:37:22 +01:00
.dockerignore Extract reconcile (#85) 2025-07-13 11:06:42 +01:00
.env Extract reconcile (#85) 2025-07-13 11:06:42 +01:00
build.rs Add history-ui workspace and supporting server endpoints 2026-05-09 11:37:22 +01:00
Cargo.lock Bump versions to 0.14.0 2025-12-14 23:31:40 +00:00
Cargo.toml Add history-ui workspace and supporting server endpoints 2026-05-09 11:37:22 +01:00
config-e2e.yml Move log level to config file 2025-12-07 16:42:23 +00:00
Dockerfile Bump rust from 1.90-slim-trixie to 1.91-slim-trixie in /sync-server (#156) 2025-11-02 17:52:18 +00:00
README.md Add migration docs 2025-10-19 11:53:58 +01:00
rust-toolchain.toml Apply editorconfig 2025-12-07 16:42:23 +00:00

Sync server

Creating/resetting the Database for development

rm -rf db.sqlite*
sqlx database create --database-url sqlite://db.sqlite3
sqlx migrate run --source src/app_state/database/migrations --database-url sqlite://db.sqlite3
cargo sqlx prepare --workspace

Updating the DB schema through a migration

sqlx migrate add --source src/app_state/database/migrations <name>
sqlx migrate run --source src/app_state/database/migrations --database-url sqlite://db.sqlite3