{"id":22344868,"url":"https://github.com/ibfleming/go-htmx-todo-web-app","last_synced_at":"2025-07-28T12:07:45.266Z","repository":{"id":263886008,"uuid":"877648412","full_name":"ibfleming/go-htmx-todo-web-app","owner":"ibfleming","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-21T20:05:08.000Z","size":220,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T11:33:44.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/ibfleming.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":"2024-10-24T02:09:10.000Z","updated_at":"2024-11-21T20:05:12.000Z","dependencies_parsed_at":"2024-11-20T20:35:19.556Z","dependency_job_id":"e2302167-1d67-432b-9545-c917c58e81f2","html_url":"https://github.com/ibfleming/go-htmx-todo-web-app","commit_stats":null,"previous_names":["ibfleming/go-htmx-todo-web-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibfleming%2Fgo-htmx-todo-web-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibfleming%2Fgo-htmx-todo-web-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibfleming%2Fgo-htmx-todo-web-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibfleming%2Fgo-htmx-todo-web-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibfleming","download_url":"https://codeload.github.com/ibfleming/go-htmx-todo-web-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245632418,"owners_count":20647194,"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":[],"created_at":"2024-12-04T09:15:22.128Z","updated_at":"2025-03-26T10:13:44.905Z","avatar_url":"https://github.com/ibfleming.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TODO CRUD Web Application (Go, HTMX, Templ, TailwindCSS)\n\n![Todo app](todo-app.png \"View of app\")\n\n### Overview\n\nThis project is a fully functional web application built with the **Go** programming language, emphasizing backend-driven development. It showcases a simple yet powerful **CRUD (Create, Read, Update, Delete)** implementation, utilizing modern tools for streamlined development.\n\n### Features\n\n- **User Authentication**: Account registration, login, and session management.\n- **CRUD Operations**: Manage todos via a fully implemented backend.\n- **Custom HTTP Server**: Built from scratch with Go’s `http` package, showcasing custom handlers and endpoints for all HTTP verbs.\n- **Database Integration**:\n  - PostgreSQL for storing users, todos, and session data.\n  - Optimized queries and data validation.\n- **Modern Web Development Tools**:\n  - **HTMX**: For dynamic client interactions and partial HTML updates without full page reloads.\n  - **Templ**: Simplified HTML templating for organized and maintainable code.\n  - **TailwindCSS**: Rapid UI development with minimal custom CSS.\n\n### Key Objectives\n\n1. Leverage **Go** to implement a backend-focused web application with minimal reliance on frontend frameworks.\n2. Demonstrate backend functionality, including:\n   - Endpoints covering all HTTP verbs (GET, POST, PUT, DELETE).\n   - Secure session handling.\n   - Integration with a relational database (PostgreSQL).\n3. Provide a maintainable, scalable structure for future improvements.\n\n### Current Progress\n\n- Built with the **chi router** for cleaner routing and middleware support.\n- Plans to migrate routing to Go’s standard `http` package for deeper understanding and flexibility.\n- Includes foundational functionality with opportunities for cleanup and optimization.\n\n### How to Run\n\n1. **Clone the repository**:\n   ```bash\n   git clone https://github.com/your-username/your-repo.git\n   cd your-repo\n   ```\n2. **Set up PostgreSQL**:\n   - Create a database and update connection details in the configuration file. I used Docker.\n3. **Run the application**:\n   ```bash\n   go run main.go\n   ```\n4. **Access the application**:\n   - Open a web browser and navigate to `http://localhost:8080`.\n\n### Technologies Used\n\n- **Backend**: Go, chi router (future migration to `http`).\n- **Frontend**: HTMX, Templ, TailwindCSS.\n- **Database**: PostgreSQL.\n\n### Future Plans\n\n- ~~Fully migrate from **chi router** to Go’s standard `http` package.~~\n- Refactor and optimize code for better maintainability.\n- Add additional features such as:\n  - Password recovery.\n  - Advanced filtering and search for todos.\n  - Improved test coverage.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibfleming%2Fgo-htmx-todo-web-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibfleming%2Fgo-htmx-todo-web-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibfleming%2Fgo-htmx-todo-web-app/lists"}