add basic backend
This commit is contained in:
17
backend/Justfile
Normal file
17
backend/Justfile
Normal 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}}
|
||||
Reference in New Issue
Block a user