start_frontend.sh
677 Bytes
#!/bin/bash
# Start Frontend Server
set -e
cd "$(dirname "$0")/.."
source ./activate.sh
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo -e "${GREEN}========================================${NC}"
echo -e "${GREEN}Starting Frontend Server${NC}"
echo -e "${GREEN}========================================${NC}"
FRONTEND_PORT="${FRONTEND_PORT:-6003}"
API_PORT="${API_PORT:-6002}"
echo -e "\n${YELLOW}Frontend will be available at:${NC}"
echo -e " ${GREEN}http://localhost:${FRONTEND_PORT}${NC}"
echo ""
echo -e "${YELLOW}Make sure the backend API is running at:${NC}"
echo -e " ${GREEN}http://localhost:${API_PORT}${NC}"
echo ""
python scripts/frontend_server.py