{"id":13771114,"url":"https://github.com/marty331/fasthtmx","last_synced_at":"2026-01-17T13:02:37.585Z","repository":{"id":38832793,"uuid":"416564303","full_name":"marty331/fasthtmx","owner":"marty331","description":"FastAPI-HTMX Demo Project","archived":false,"fork":false,"pushed_at":"2024-01-15T16:41:39.000Z","size":1403,"stargazers_count":260,"open_issues_count":2,"forks_count":34,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-11T03:36:22.131Z","etag":null,"topics":["fastapi","hactoberfest","hactoberfest-2021","hactoberfest2021","htmx","prs-welcome"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marty331.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-10-13T02:34:37.000Z","updated_at":"2025-05-06T09:04:59.000Z","dependencies_parsed_at":"2024-01-12T13:48:55.521Z","dependency_job_id":"5f45cb65-2714-4a05-a960-63151da2620d","html_url":"https://github.com/marty331/fasthtmx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marty331/fasthtmx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty331%2Ffasthtmx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty331%2Ffasthtmx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty331%2Ffasthtmx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty331%2Ffasthtmx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marty331","download_url":"https://codeload.github.com/marty331/fasthtmx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marty331%2Ffasthtmx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28508943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T11:50:55.898Z","status":"ssl_error","status_checked_at":"2026-01-17T11:50:55.569Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fastapi","hactoberfest","hactoberfest-2021","hactoberfest2021","htmx","prs-welcome"],"created_at":"2024-08-03T17:00:47.809Z","updated_at":"2026-01-17T13:02:37.567Z","avatar_url":"https://github.com/marty331.png","language":"CSS","funding_links":[],"categories":["Examples by Back-end","CSS"],"sub_categories":["Python-based (Django, FastAPI, Flask)"],"readme":"# Fast-HTMX\n\n## Description\nFast-HTMX is a demo project of [FastAPI](https://fastapi.tiangolo.com) and [HTMX](https://htmx.org).  The purpose of this project\nis to illustrate how to create a website with no JavaScript, using only HTML, CSS, and\nPython.  HTMX is a plugin that allows this to be possible.\n\n## HTMX Attributes\nThe following HTMX attributes are used in this project:\n\n- hx-get\n- hx-post\n- hx-trigger\n- hx-target\n- hx-push-url\n- hx-indicator\n- hx-swap\n\n## Structure\ndb - Database setup\n\nmodels - Data models\n\nschema - Pydantic models\n\nservices - Database services\n\nstatic - Static files\n\ntemplates - Contains files for each page and partials for all partial pages that are related to the main page of the directory which it is under.\n\nviewmodels - View models for gathering data for pages and partials.\n\nmain.py - Main operational file for running FastAPI.\n\n## How to run\n- Create virtual environment\n- Activate virtual environment\n- Install requirements `pip3 install -r requirements.txt`\n- Run project `python3 -m uvicorn main:app --reload`\n    ### Using Docker\n    - Build image `docker build -t fast-htmx .`\n    - Create Database `touch sql_app.db`\n    - Run container `docker run -v $(pwd)/sql_app.db:/code/sql_app.db -d --name fast-htmx -p 8000:8000 fast-htmx`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarty331%2Ffasthtmx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarty331%2Ffasthtmx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarty331%2Ffasthtmx/lists"}