Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 390 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 390 Bytes

sample-api

Minimal FastAPI app.

Local

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload --port 8000

Open http://localhost:8000 and http://localhost:8000/health.

The app listens on 0.0.0.0 and $PORT (default 8000).

Docker

docker build -t sample-api .
docker run --rm -p 8000:8000 sample-api