remove separate ui service, serve ui with backend
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s

This commit is contained in:
2025-07-18 01:54:26 +01:00
parent f9047644fe
commit 77ea0144cf
70 changed files with 153 additions and 11214 deletions

View File

@ -1,8 +1,30 @@
run *ARGS: build
docker compose up {{ARGS}}
./target/debug/nuchat {{ARGS}}
stop:
docker compose down
start: build
./target/debug/nuchat 2>&1 > target/debug/logs/nuchat.log &
build:
build: build-cargo build-ui
build-cargo:
@mkdir -p target/debug/logs
@mkdir -p dist
cargo build
[working-directory: "ui"]
build-ui:
npm install
npm run build
test: integration unit
integration:
if [ ! $(curl -sf "localhost:7000/api/healthcheck" ) ]; then just run; fi
cargo test --test '*'
unit:
cargo test --lib --bins
docker *ARGS:
docker compose build
docker compose up {{ARGS}}