a single page application to capture "flashes of inspiration"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Ernesto Rico Schmidt b7aab48484
Update README
2 months ago
presentation Add presentation 2 months ago
static First commit 2 months ago
templates First commit 2 months ago
.flake8 First commit 2 months ago
.gitignore Add __pycache__ 2 months ago
LICENSE Clarify LICENSE 2 months ago
LICENSE_htmx Add LICENSEs for htmx and missing 2 months ago
LICENSE_missing Add LICENSEs for htmx and missing 2 months ago
README.md Update README 2 months ago
TODO.md Add TODOs 2 months ago
app.py First commit 2 months ago
forms.py First commit 2 months ago
models.py First commit 2 months ago
poetry.lock First commit 2 months ago
pyproject.toml First commit 2 months ago

README.md

geistesblitze2

geistesblitze was a small web application I created to accompany an article for the German Linux Magazin in 2014 about Flask, when the release of version 1.0 was supposedly approaching.

Flask 1.0 was actually released four years later, and since version 2.0 that was released in 2021, I wanted to turn it into a modern single page application, but the options to achieve this never convinced me.

I didn't want to separate such a simple application into a backend and a frontend and add a whole ecosystem (Javascript) to accomplish the task.

I recently discovered htmx and geistesblitze2 shows how to integrate Flask and htmx and achieve a single page application, without having to write a single line of Javascript.

I presented this project at PyCon Bolivia 2022, in December 2022.

The presentation, Flask y htmx is available in this repository.

To run the project, you need to clone the repository:

$ git clone https://git.rico-schmidt.name/ernesto/geistesblitze2.git

If you don't have Poetry installed, you can use the official installer.

Then, change into the geistesblitze2 directory and install the project. This will create a virtual environment.

$ cd geistesblitze2
$ poetry install --no-root

Then, you need to create the database and the tables:

$ poetry run flask create-all

And, finally, you can start the application:

$ poetry run flask run

The application is now running on http://127.0.0.1:5000