Spaces:
Running
Running
| # Start POS Microservice | |
| # Usage: ./start_server.sh [port] | |
| PORT=${1:-8001} | |
| echo "π Starting POS Microservice on port $PORT..." | |
| # Activate virtual environment | |
| source venv/bin/activate | |
| # Start the server | |
| python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT --reload | |
| echo "β POS Microservice started successfully!" | |
| echo "π API Documentation: http://localhost:$PORT/docs" | |
| echo "π Health Check: http://localhost:$PORT/health" |