nhymxu / flask-boilerplate

A boilerplate Flask RESTful API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flask-boilerplate

Local run

flask --app web run
# or
FLASK_APP=web flask run

Lint

ruff check .

Deploy

synchronize: Gunicorn async: Hypercorn/uvcorn

pip install "uvicorn[standard]" gunicorn
hypercorn web:asgi_app

uvicorn web:asgi_app --host 0.0.0.0 --port 80

gunicorn web:asgi_app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:80

About

A boilerplate Flask RESTful API


Languages

Language:Python 85.5%Language:Makefile 8.1%Language:Dockerfile 5.6%Language:Shell 0.8%