This is a basic, rough and ready demo of integrating Flask and HTMx into a single page application.
-
Clone the repo:
git clone https://github.com/ju-c/flask-htmx-example.git
-
Move to the base directory:
cd flask-htmx-example
-
Create a new python environment:
python -m venv env
-
Activate environment:
-
On Windows:
env\Scripts\activate
-
On Linux and Mac:
source env/bin/activate
-
-
Install the requirements:
pip install -r requirements.txt
-
Run the server:
python run.py