{"id":13770883,"url":"https://github.com/AussieGuy0/java-htmx-todo","last_synced_at":"2025-05-11T03:32:55.630Z","repository":{"id":189445605,"uuid":"652593046","full_name":"AussieGuy0/java-htmx-todo","owner":"AussieGuy0","description":"A example of using Java, Javalin and HTMX for building webapps. ","archived":false,"fork":false,"pushed_at":"2023-08-21T13:19:18.000Z","size":42,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-17T06:40:29.908Z","etag":null,"topics":["htmx"],"latest_commit_sha":null,"homepage":"","language":"Java","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/AussieGuy0.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}},"created_at":"2023-06-12T11:46:51.000Z","updated_at":"2024-06-11T23:59:08.000Z","dependencies_parsed_at":"2024-01-12T12:56:04.390Z","dependency_job_id":"eaf09fbd-2f38-4342-b692-ddcb6423b431","html_url":"https://github.com/AussieGuy0/java-htmx-todo","commit_stats":null,"previous_names":["aussieguy0/java-htmx-todo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AussieGuy0%2Fjava-htmx-todo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AussieGuy0%2Fjava-htmx-todo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AussieGuy0%2Fjava-htmx-todo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AussieGuy0%2Fjava-htmx-todo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AussieGuy0","download_url":"https://codeload.github.com/AussieGuy0/java-htmx-todo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253514352,"owners_count":21920327,"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":["htmx"],"created_at":"2024-08-03T17:00:43.746Z","updated_at":"2025-05-11T03:32:55.352Z","avatar_url":"https://github.com/AussieGuy0.png","language":"Java","funding_links":[],"categories":["Examples by Back-end"],"sub_categories":["Java"],"readme":"# HTMX Java example\n\n## WTF is this?\n\nThis is a groundbreaking piece of technology.\nThis application combines blockchain, AI and secrets stolen from Area 51 to bring you wealth beyond\nyour wildest dreams.\n\n## Really?\n\nNah, it's just a todo list app.\n\n![A beautiful TODO app](/screenshot.png)\n\n## Great, we need more of them.\n\nI agree! This one has a bit of a unique stack, it uses:\n\n- Java (Yes, people still use this!)\n- [HTMX](https://htmx.org/): Frontend \"\"\"framework\"\"\"\n- [picocss](https://picocss.com/): Minimal CSS library (the first result for \"minimal css\")\n- [Javalin](https://javalin.io/): Backend web server.\n- [j2html](https://j2html.com/): Html builder library.\n\nWhich allows the whole thing to be written a [single Java file](https://github.com/AussieGuy0/java-htmx-todo/blob/e8c174b8bfd3173e2b392601b460dc75411db7c5/src/main/java/dev/anthonybruno/htmx/Server.java).\nThere is not a single line of Javascript in this whole project!^\n\n^ Yes, technically HTMX does bring in Javascript but ya know what I'm saying.\n\n## Wow...there is an awful lot of inline styling in this project.\n\nThis is just an example application, not a fully fledged deploy-on-prod thing!\n\nIf you were doing it properly, maybe you would write it in css files, import tailwind or something.\n\n## Alright alright, how do I run this?\n\nLoad it in your favourite Java IDE (like IntelliJ or....uh...) and run the main method in `Server`.\nAccess it via `localhost:8080` in a web browser.\n\nIn the root directory, we can also run it by:\n\n1. `mvn package`\n2. `java -jar target/htmx-1.0-SNAPSHOT.jar`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAussieGuy0%2Fjava-htmx-todo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAussieGuy0%2Fjava-htmx-todo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAussieGuy0%2Fjava-htmx-todo/lists"}