Animation added
This commit is contained in:
27
run.sh
Normal file
27
run.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "========================================"
|
||||
echo " MAZE GENERATOR - Starting Server"
|
||||
echo "========================================"
|
||||
echo ""
|
||||
|
||||
# Check if virtual environment exists
|
||||
if [ ! -d "venv" ]; then
|
||||
echo "Creating virtual environment..."
|
||||
python3 -m venv venv
|
||||
fi
|
||||
|
||||
# Activate virtual environment
|
||||
source venv/bin/activate
|
||||
|
||||
# Install requirements if needed
|
||||
echo "Installing/updating dependencies..."
|
||||
pip install -q -r requirements.txt
|
||||
|
||||
# Start the Flask application
|
||||
echo ""
|
||||
echo "Starting Flask server on http://localhost:5000"
|
||||
echo ""
|
||||
echo "Press Ctrl+C to stop the server"
|
||||
echo ""
|
||||
python api/app.py
|
||||
Reference in New Issue
Block a user