Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ju-c/flask-htmx-example

A basic demo of integrating Flask and HTMx into a single page application.
https://github.com/ju-c/flask-htmx-example

flask htmx

Last synced: 27 days ago
JSON representation

A basic demo of integrating Flask and HTMx into a single page application.

Awesome Lists containing this project

README

        

## Flask and HTMx Example

![Flask and HTMx demo project](./github_img/flask-htmx-example.gif)

This is a basic, rough and ready demo of integrating [Flask](https://flask.palletsprojects.com/) and [HTMx](https://htmx.org/) into a single page application.

### Install & Usage
1. Clone the repo:
```
git clone https://github.com/ju-c/flask-htmx-example.git
```

2. Move to the base directory:
```
cd flask-htmx-example
```

3. Create a new python environment:
```
python -m venv env
```

4. Activate environment:

- On Windows:
```
env\Scripts\activate
```

- On Linux and Mac:
```
source env/bin/activate
```

5. Install the requirements:
```bash
pip install -r requirements.txt
```

6. Run the server:
```
python run.py
```