- Notifications
You must be signed in to change notification settings - Fork21
The sync server for Taskchampion
License
GothenburgBitFactory/taskchampion-sync-server
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
TaskChampion is the task databaseTaskwarrior uses to store and synctasks. This repository implements a sync server against which Taskwarriorand other applications embedding TaskChampion can sync.
This project provides both pre-built images for common use-cases and Rustlibraries that can be used to build more sophisticated applications. Seethe documentationfor more on how to use this project.
The repository is comprised of four crates:
taskchampion-sync-server-coreimplements the core of the protocoltaskchampion-sync-server-storage-sqliteimplements an SQLite backend for the coretaskchampion-sync-server-storage-postgresimplements a Postgres backend for the coretaskchampion-sync-serverimplements a simple HTTP server for the protocol
TaskChampion Sync-Server build has been tested with current Rust stablerelease version. You can install Rust from your distribution package or userustup.
rustup default stable
The minimum supported Rust version (MSRV) is given inCargo.toml. Note that package repositories typically do nothave sufficiently new versions of Rust.
If you prefer, you can use the stable version only for installing TaskChampionSync-Server (you must clone the repository first).
rustup overrideset stableTo build TaskChampion Sync-Server binary simply execute the followingcommands.
git clone https://github.com/GothenburgBitFactory/taskchampion-sync-server.gitcd taskchampion-sync-servercargo build --releaseAfter build the binary is located intarget/release/taskchampion-sync-server.
The storage backend is controlled by Cargo featurespostres andsqlite.By default, only thesqlite feature is enabled.To enable building the Postgres backend, add--features postgres.The Postgres binary is located intarget/release/taskchampion-sync-server-postgres.
To build the images, execute the following commands.
SQLite:
docker build \ -t taskchampion-sync-server \ -f Dockerfile-sqlite
Postgres:
source .envdocker build \ -t taskchampion-sync-server-postgres \ -f Dockerfile-postgresNow to run it, simply exec.
docker run -t -d \ --name=taskchampion \ -p 8080:8080 \ taskchampion-sync-server
This starts TaskChampion Sync-Server and publishes port 8080 to the host. Pleasenote that this is a basic run, all data will be destroyed after stop anddelete container. You may also setDATA_DIR,CLIENT_ID, orLISTEN with-e, e.g.,
docker run -t -d \ --name=taskchampion \ -e LISTEN=0.0.0.0:9000 \ -p 9000:9000 \ taskchampion-sync-server
About
The sync server for Taskchampion
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.