Repository navigation
Expand file tree
/
Copy pathstart_demo.sh
More file actions
executable file
·65 lines (57 loc) · 1.73 KB
/
Copy pathstart_demo.sh
File metadata and controls
executable file
·65 lines (57 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
#
# Quick Start Script for Demo UI
#
# This script checks dependencies and starts the demo server.
# It works with or without a virtual environment.
#
set -e
echo "=================================================="
echo " MYCELIUM - Execution Engine Demo"
echo "=================================================="
echo ""
# Check if in virtual environment
if [ -n "$VIRTUAL_ENV" ]; then
echo "✓ Running in virtual environment: $VIRTUAL_ENV"
else
echo "ℹ️ Not in a virtual environment (this is fine for demo)"
echo ""
echo " Tip: For cleaner setup, consider using a virtual environment:"
echo " python3 -m venv .venv && source .venv/bin/activate"
fi
echo ""
# Check Python version
echo "Checking Python version..."
python_version=$(python3 --version 2>&1 | awk '{print $2}')
echo "✓ Python $python_version"
echo ""
# Check if Flask is installed
echo "Checking Flask installation..."
if python3 -c "import flask" 2>/dev/null; then
flask_version=$(python3 -c "import flask; print(flask.__version__)")
echo "✓ Flask $flask_version installed"
else
echo "✗ Flask not found"
echo ""
echo "Installing Flask..."
pip install flask
echo "✓ Flask installed"
fi
echo ""
# Navigate to the correct directory
cd "$(dirname "$0")"
echo "=================================================="
echo " Starting Demo Server"
echo "=================================================="
echo ""
echo "The demo UI will be available at:"
echo ""
echo " http://127.0.0.1:5000"
echo ""
echo "Press Ctrl+C to stop the server"
echo "Tip: Set FLASK_DEBUG=true to enable debug mode"
echo ""
echo "=================================================="
echo ""
# Start the server
python3 -m freqtrade.ui.demo_server