Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ju-c/flask-htmx-example
- Owner: ju-c
- License: mit
- Created: 2022-10-18T16:08:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-17T00:16:06.000Z (7 months ago)
- Last Synced: 2024-04-17T06:44:59.634Z (7 months ago)
- Topics: flask, htmx
- Language: Python
- Homepage:
- Size: 1.38 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
```