Simple Flask API responding with JSON {"message": "Hello World!"}.
Create and activate a virtual environment, then install dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtRun locally with gunicorn (make sure the virtual environment is active):
./run_gunicorn.shA sample hello-world.service is provided. Install using:
sudo ./install_service.shEnsure that the virtual environment exists at /opt/hello-world/venv and
contains the required packages before starting the service. The service
listens on port 8000.