https://github.com/eugeneyan/fastapi-html
Sample repository demonstrating how to use FastAPI to serve HTML web apps.
https://github.com/eugeneyan/fastapi-html
fastapi html jinja2 python template
Last synced: 2 months ago
JSON representation
Sample repository demonstrating how to use FastAPI to serve HTML web apps.
- Host: GitHub
- URL: https://github.com/eugeneyan/fastapi-html
- Owner: eugeneyan
- Created: 2020-07-25T03:29:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-18T05:51:16.000Z (over 1 year ago)
- Last Synced: 2025-04-16T04:44:44.595Z (2 months ago)
- Topics: fastapi, html, jinja2, python, template
- Language: Python
- Homepage: https://eugeneyan.com/writing/how-to-set-up-html-app-with-fastapi-jinja-forms-templates/
- Size: 81.1 KB
- Stars: 74
- Watchers: 5
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## fastapi-html
Sample repository demonstrating how to use `FastAPI` to serve HTML web apps.
>2-min blog post [here](https://eugeneyan.com/writing/how-to-set-up-html-app-with-fastapi-jinja-forms-templates/).
## 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](http://127.0.0.1:8000/form).
Viola!
