eugeneyan / fastapi-html

Sample repository demonstrating how to use FastAPI to serve HTML web apps.

Home Page:https://eugeneyan.com/writing/how-to-set-up-html-app-with-fastapi-jinja-forms-templates/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastapi-html

Sample repository demonstrating how to use FastAPI to serve HTML web apps.

2-min blog post here.

Quickstart

# Clone this repo
git clone https://github.com/eugeneyan/fastapi-html.git

# Install the required dependencies
cd fastapi-html
poetry install

# Start the HTML app
poetry run uvicorn src.html:app --reload

Navigate to 127.0.0.1:8000/form.

Viola!

fastapi-html

About

Sample repository demonstrating how to use FastAPI to serve HTML web apps.

https://eugeneyan.com/writing/how-to-set-up-html-app-with-fastapi-jinja-forms-templates/


Languages

Language:Python 77.8%Language:HTML 22.2%