---
title: "FastHTML Boilerplate"
description: "Create HTML apps with Python, HTMX, and ASGI."
url: "https://vercel.com/templates/python/fasthtml-python-boilerplate"
links:
  repository: "https://github.com/vercel/examples/tree/main/framework-boilerplates/fasthtml"
  demo: "https://fasthtml-template.vercel.app/"
  deploy: "https://vercel.com/new/clone?demo-title=FastHTML+Boilerplate&demo-description=Create+HTML+apps+with+Python%2C+HTMX%2C+and+ASGI.&demo-url=https%3A%2F%2Ffasthtml-template.vercel.app%2F&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F5pCxIArwpmw63YjaMaVI8G%2F04a9b4234cd1502742c286be8a1fe6d8%2FFastHTML_Light.jpg&project-name=FastHTML+Boilerplate&repository-name=fasthtml-python-boilerplate&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fexamples%2Ftree%2Fmain%2Fframework-boilerplates%2Ffasthtml&from=templates&skippable-integrations=1"
---

# FastHTML Boilerplate

Create HTML apps with Python, HTMX, and ASGI.

# FastHTML Boilerplate

Deploy your [FastHTML](https://fastht.ml/) project to Vercel with zero configuration.

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/framework-boilerplates/fasthtml&template=fasthtml)

_Live Example: https://fasthtml-template.vercel.app_

Visit the [FastHTML documentation](https://docs.fastht.ml/) to learn more.

## Getting Started

Install the required dependencies:

```bash
pip install -r requirements.txt
```

## Running Locally

Start the development server on http://0.0.0.0:5001

```bash
python main.py
```

When you make changes to your project, the server will automatically reload.

## Deploying to Vercel

Deploy your project to Vercel with the following command:

```bash
npm install -g vercel
vercel --prod
```

Or `git push` to your repostory with our [git integration](https://vercel.com/docs/deployments/git).

To view the source code for this template, [visit the example repository](https://github.com/vercel/vercel/tree/main/examples/fasthtml).

## Related Templates

### [Django Hello World](https://vercel.com/templates/python/django-hello-world)

Use Django on Vercel with Serverless Functions using the Python Runtime.

### [Python Hello World](https://vercel.com/templates/python/python-hello-world)

Use Python on Vercel with Serverless Functions using the Python Runtime.

### [Flask Hello World](https://vercel.com/templates/python/flask-hello-world)

Use Flask 3 on Vercel with Serverless Functions using the Python Runtime.

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
