An open API service indexing awesome lists of open source software.

https://github.com/wkentaro/vercel-fasthtml-python-boilerplate

Fixes the crash described in: https://x.com/wkentaro_/status/1825042400563396988
https://github.com/wkentaro/vercel-fasthtml-python-boilerplate

Last synced: about 1 month ago
JSON representation

Fixes the crash described in: https://x.com/wkentaro_/status/1825042400563396988

Awesome Lists containing this project

README

          

# 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/vercel/tree/main/examples/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).