Skip to content

TortitasT/langkeeper

Repository files navigation

Langkeeper

Tests

Keep track of the time you spend on each language.

vscode extension

neovim extension

imagen

Development

Create database and run migrations (requires diesel_cli).

diesel setup

Run with watch.

cargo install cargo-watch
cargo watch -x "run serve"

Deploy

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

Tests

Run with logs and in single thread so sqlite database works.

cargo test -- --nocapture --test-threads=1

Diesel with sqlite install on Windows for development

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

About

Keep track of the time you spend programming.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published