add basic backend

This commit is contained in:
2025-07-21 17:08:30 +01:00
parent d0ca82972f
commit 50d094be8f
14 changed files with 2714 additions and 2 deletions

17
backend/Justfile Normal file
View File

@ -0,0 +1,17 @@
build:
cargo build --features shutdown
run:
cargo run --features shutdown
start:
cargo run --features shutdown 2>&1 > logs/nuchat.log
test:
cargo run --features shutdown -- --port 7001 2>&1 > logs/nuchat.log &
cargo test
curl -s -X POST localhost:7001/admin/shutdown
default := 'run'
watch CMD=default:
watchexec -w src -r just {{CMD}}