#!/bin/bash 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