move backend source to src

This commit is contained in:
Shivering Ocelot committed 2025-07-14 16:43:27 -05:00
1 parent c8b86927e2
commit 0dbdb1b5ad
13 files changed
+6 -22

No files matched your search

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2 -1
View File
@@ -8,7 +8,8 @@ import asyncio
import nest_asyncio import nest_asyncio
# Vue frontend # Vue frontend
frontend_path = '../frontend/dist' # relative to the module file???? wtf
frontend_path = '../../frontend/dist'
def start_server(app): def start_server(app):
server = Quart(__name__, static_folder=frontend_path) server = Quart(__name__, static_folder=frontend_path)
File renamed without changes.
File renamed without changes.
+4 -21
View File
@@ -14,8 +14,7 @@ case "$1" in
"") "")
data_dir=$(realpath ./local-data) data_dir=$(realpath ./local-data)
mkdir -p $data_dir mkdir -p $data_dir
cd backend python backend/src/app.py $data_dir
python app.py $data_dir
;; ;;
"cli") "cli")
node cli/main.js "$2" node cli/main.js "$2"
@@ -26,14 +25,13 @@ case "$1" in
rm -f test-data/horde.db rm -f test-data/horde.db
# Start backend in the background # Start backend in the background
cd backend python backend/src/app.py ../test-data &
python app.py ../test-data &
BACKEND_PID=$! BACKEND_PID=$!
echo "Started backend: $BACKEND_PID" echo "Started backend: $BACKEND_PID"
sleep 2 sleep 2
# Run tests # Run tests
cd ../testing cd testing
bash signup.sh bash signup.sh
#node login.js #node login.js
node suite.js node suite.js
@@ -41,20 +39,6 @@ case "$1" in
# Finalize the backend server # Finalize the backend server
kill $BACKEND_PID kill $BACKEND_PID
;; ;;
"debug")
# Debug doesn't work very well... I don't use it.
cd backend
python app.py &
cd ../frontend
# This can be skipped if chrome IS installed
export CHROME_EXECUTABLE=chromium
export BACKEND_URL="ws://localhost:5000"
flutter run -d chrome
# Close backend when debugger closes
kill $!
;;
"watch") "watch")
# requires 'inotify-tools' package # requires 'inotify-tools' package
cd frontend cd frontend
@@ -65,8 +49,7 @@ case "$1" in
*) *)
if [ -d "$1" ]; then if [ -d "$1" ]; then
data_dir=$(realpath $1) data_dir=$(realpath $1)
cd backend python backend/src/app.py $data_dir
python app.py $data_dir
else else
echo "Error: unknown command or directory '$1'" echo "Error: unknown command or directory '$1'"
fi fi