internet_radio_web2.0/server

15 lines
312 B
Bash
Executable File

#!/bin/bash
# Start a simple HTTP server using Python
PORT=8001
echo "Starting HTTP server on port $PORT..."
# Check if Python 3 is installed
if command -v python3 &>/dev/null; then
python3 -m http.server $PORT
else
echo "Python 3 is not installed. Please install it to run the server."
exit 1
fi