Keep track of the time you spend on each language.
Create database and run migrations (requires diesel_cli).
diesel setup
Run with watch.
cargo install cargo-watch
cargo watch -x "run serve"
Clone
git clone https://github.com/tortitast/langkeeper
Build
cargo build --release
Copy service
cp ./langkeeper.service /etc/systemd/system/
Start service
service langkeeper start
Run with logs and in single thread so sqlite database works.
cargo test -- --nocapture --test-threads=1
Install sqlite with chocolatey.
choco install sqlite
Create .lib
with the following command (needs to be run with Visual Studio Development Console for lib
to be available) on the directory where the dll
is.
cd C:\ProgramData\chocolatey\lib\SQLite\tools
lib /def:sqlite3.def /out:sqlite3.lib
Add path to environment variable.
$Env:SQLITE3_LIB_DIR = "C:\ProgramData\chocolatey\lib\SQLite\tools"
Install diesel_cli with the following command.
cargo install diesel_cli --no-default-features --features postgres