{"id":24303108,"url":"https://github.com/bartonhammond/aha-htmx-tutorial","last_synced_at":"2026-02-21T03:32:11.842Z","repository":{"id":272606532,"uuid":"914008172","full_name":"bartonhammond/aha-htmx-tutorial","owner":"bartonhammond","description":"Learn the AHA stack: Perfect for frontend developers that know React / JSX and want a similar DX, but also want much more simplicity in their life by generating HTML on the server and writing as little client-side JavaScript as possible.  See https://ahastack.dev/","archived":false,"fork":false,"pushed_at":"2025-01-21T15:37:40.000Z","size":22654,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T21:14:14.796Z","etag":null,"topics":["aha","alpinejs","astrojs","htmx","picocss","pocketbase","tutorial"],"latest_commit_sha":null,"homepage":"https://aha-htmx-tutorial.fly.dev/","language":"JavaScript","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/bartonhammond.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,"publiccode":null,"codemeta":null}},"created_at":"2025-01-08T19:13:37.000Z","updated_at":"2025-06-01T01:19:37.000Z","dependencies_parsed_at":"2025-01-15T15:31:41.591Z","dependency_job_id":"07a0ca4b-cf42-498d-bcc7-6876ac204b56","html_url":"https://github.com/bartonhammond/aha-htmx-tutorial","commit_stats":null,"previous_names":["bartonhammond/aha-htmx-tutorial"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bartonhammond/aha-htmx-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartonhammond%2Faha-htmx-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartonhammond%2Faha-htmx-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartonhammond%2Faha-htmx-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartonhammond%2Faha-htmx-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bartonhammond","download_url":"https://codeload.github.com/bartonhammond/aha-htmx-tutorial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartonhammond%2Faha-htmx-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29672704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T03:11:15.450Z","status":"ssl_error","status_checked_at":"2026-02-21T03:10:34.920Z","response_time":107,"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":["aha","alpinejs","astrojs","htmx","picocss","pocketbase","tutorial"],"created_at":"2025-01-17T00:35:26.825Z","updated_at":"2026-02-21T03:32:11.818Z","avatar_url":"https://github.com/bartonhammond.png","language":"JavaScript","readme":"# AHA Example\n## Astro - HTMX - Alpine- Pocketbase - PicoCSS - Fly\n\n### Install\n#### Pocketbase\n* copy a `pocketbase` app to the `pb` directory\n* run `./scripts/start.sh` to start `pocketbase`\n* import the `pb/pb_schema.json` to create the `contacts` db\n* create an admin, turn off the API rules on `contacts`\n#### Astro\n*  `npm i`\n\n### Running\n* in one terminal `./scripts/start.sh` - this starts PB\n* in another terminal `npm run dev` - this starts Astro\n\n### Loading data\n* cd into `scripts`\n* `node loadData.js development | production` - to load Contacts\n* `node test.js development | production` - to confirm db\n\n\n### Deployment \nBoth Astro and Pocketbase are deployed to Fly.io\n#### Astro\nsee Dockerfile and fly.toml\nNote that this app requires 3 secrets that locally are in the `.env.development`.\nTo deploy to Fly.io you don't want those secrets in the Dockerfile\nInstead use `fly secrets`\nYou have to make three of them like this\n\n```\nfly secrets set POCKETBASE_URL=where ever\nfly secrets set POCKETBASE_SUPERUSER=some email\nfly secrets set POCKETBASE_PASSWORD=some password\n```\n\nNext, you need to have disk space to write the `archive zip` file\n\nAdd 2 volumes : [https://fly.io/docs/launch/volume-storage/](https://fly.io/docs/launch/volume-storage/)\n*  `fly volumes create downloads -r dfw`\n\nVerify - notice the `downloads` in the `NAME` column.  \n```\nfly volumes list        \nID                  \tSTATE  \tNAME     \tSIZE\tREGION\tZONE\tENCRYPTED\tATTACHED VM   \tCREATED AT     \nvol_vpzmddnqn7xg5824\tcreated\tdownloads\t1GB \tdfw   \tedff\ttrue     \td891443c242e18\t40 minutes ago\t\nvol_v3yeq0qkqzk3gdm4\tcreated\tdownloads\t1GB \tdfw   \t8f05\ttrue     \t1857057c63de08\t8 minutes ago \n```\n\n##### Pocketbase\nSee the complete instructions here: [https://github.com/pocketbase/pocketbase/discussions/537](https://github.com/pocketbase/pocketbase/discussions/537)\nsee the `Dockerfile` and `fly.yml` in the `pb` directory\nNote that Pocketbase needs the volume storage as shown above\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartonhammond%2Faha-htmx-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbartonhammond%2Faha-htmx-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartonhammond%2Faha-htmx-tutorial/lists"}