{"id":23413321,"url":"https://github.com/forgineer/flask-htmx-example","last_synced_at":"2025-10-30T02:30:28.306Z","repository":{"id":265012409,"uuid":"857966369","full_name":"forgineer/flask-htmx-example","owner":"forgineer","description":"Example Flask application using HTMX.","archived":false,"fork":false,"pushed_at":"2024-11-30T16:04:46.000Z","size":36,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-22T19:37:59.724Z","etag":null,"topics":["blog","blueprints","example","flask","htmx"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forgineer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-16T03:44:26.000Z","updated_at":"2024-12-21T19:25:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"0281f127-df19-4b66-aa99-f76007f78df9","html_url":"https://github.com/forgineer/flask-htmx-example","commit_stats":null,"previous_names":["forgineer/flask-htmx-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forgineer%2Fflask-htmx-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forgineer%2Fflask-htmx-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forgineer%2Fflask-htmx-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forgineer%2Fflask-htmx-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forgineer","download_url":"https://codeload.github.com/forgineer/flask-htmx-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238921529,"owners_count":19552775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","blueprints","example","flask","htmx"],"created_at":"2024-12-22T19:32:03.040Z","updated_at":"2025-10-30T02:30:21.534Z","avatar_url":"https://github.com/forgineer.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-htmx-example\nThis repository features an example Flask application using the [HTMX library](https://htmx.org/). This project evolves from the foundational blog app tutorial found on the official [Flask documentation page](https://flask.palletsprojects.com/), enhancing it by implementing HTMX. HTMX is a powerful JavaScript library that provides dynamic interactions on websites without requiring complex JavaScript code or frameworks, making it easier to build modern, responsive web applications. This example not only demonstrates a fundamental integration of Flask with HTMX but also delves into the nuances of scaling the application with more complex events and functionalities, providing a practical, in-depth guide for developers looking to leverage HTMX within their Flask projects.\n\n## HtmxBlog\n\"HtmxBlog\" is an enhanced version of the 'flaskr' blogging application, originally introduced in the Flask official documentation as a tutorial for new developers.\n\n---\n\n### Installation Instructions for HTMX Blog\n\nFollow these steps to get HtmxBlog up and running on your local machine. This guide assumes you have Git and Python installed on your system.\n\n#### 1. Clone the Repository\n\nFirst, clone the HTMX Blog repository from GitHub to your local machine using the following command:\n\n```bash\ngit clone https://github.com/forgineer/flask-htmx-example.git\n```\n\n#### 2. Navigate to the Project Directory\n\nChange your current working directory to the `flask-htmx-example` folder:\n\n```bash\ncd flask-htmx-example\n```\n\n#### 3. Create and Activate a Python Virtual Environment\n\nCreate a virtual environment in the project directory. This isolates the project dependencies from your global Python environment.\n\nTo create a virtual environment, run:\n\n```bash\npython -m venv venv\n```\n\nActivate the virtual environment:\n\n- On Windows, use:\n\n  ```bash\n  .\\venv\\Scripts\\activate\n  ```\n\n- On Unix or MacOS, use:\n\n  ```bash\n  source venv/bin/activate\n  ```\n\n#### 4. Install the Application and Dependencies\n\nWith the virtual environment activated, install HTMX Blog and its dependencies using pip:\n\n```bash\npip install .\n```\n\nThis command installs everything needed to run the application, including a recent copy of the HTMX library inside the `static` directory.\n\nBefore running the application, initialize the SQLite database that will store all user accounts and blog entries:\n\n```bash\nflask --app HtmxBlog init-db\n```\n\n#### 5. Run the Application\n\nStart the HTMX Blog application with Flask’s development server:\n\n```bash\nflask --app HtmxBlog run\n```\n\n#### 6. Access the Application\n\nOnce the application is running, open your web browser and navigate to:\n\n```\nhttp://localhost:5000\n```\n\nYou should now be able to interact with the HTMX Blog application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforgineer%2Fflask-htmx-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforgineer%2Fflask-htmx-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforgineer%2Fflask-htmx-example/lists"}