#!/bin/bash set -e echo "=== Mindray HL7 Forwarder ===" # 1. Create a virtual environment if it doesn't exist if [ ! -d "venv" ]; then echo "Creating Python virtual environment..." python3 -m venv venv fi # 2. Activate the virtual environment source venv/bin/activate # 3. Install dependencies quietly echo "Checking and installing dependencies..." pip install -r requirements.txt -q # 4. Start the server echo "Starting the application..." python main.py