backend: separate App and server, add websocket endpoint, accept data directory command argument. initialize sqlalchemy database and models in new module. frontend: create backend class for managing ws connection, move ui to chat_screen, create scaffold chat and agent classes.
This commit is contained in:
1 parent
1e82796db1
commit
44f0b3589c
19 files changed
+936
-122
No files matched your search
@@ -1,4 +1,35 @@
|
||||
#!/bin/bash
|
||||
cd backend
|
||||
source ../.venv/bin/activate
|
||||
python app.py
|
||||
|
||||
case "$1" in
|
||||
"")
|
||||
cd backend
|
||||
source ../.venv/bin/activate
|
||||
python app.py
|
||||
;;
|
||||
"test")
|
||||
# Setup test data directory
|
||||
mkdir -p test-data
|
||||
rm -f test-data/horde.db
|
||||
|
||||
# Start backend in the background
|
||||
cd backend
|
||||
source ../.venv/bin/activate
|
||||
python app.py ../test-data &
|
||||
sleep 2
|
||||
|
||||
# Run tests
|
||||
cd ../testing
|
||||
#bash signup.sh
|
||||
#node login.js
|
||||
node create-agent.js
|
||||
|
||||
# Finalize the backend server
|
||||
kill $!
|
||||
;;
|
||||
"watch")
|
||||
echo "TODO: Implement watch functionality"
|
||||
;;
|
||||
*)
|
||||
echo "Error: unknown command '$1'"
|
||||
;;
|
||||
esac
|
||||
Reference in new issue
Block a user