Skip to content

Mazfuji/hello-world-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-world

Simple Flask API responding with JSON {"message": "Hello World!"}.

Setup

Create and activate a virtual environment, then install dependencies:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Run locally with gunicorn (make sure the virtual environment is active):

./run_gunicorn.sh

Systemd service

A sample hello-world.service is provided. Install using:

sudo ./install_service.sh

Ensure 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.

About

New repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published