{"id":26474427,"url":"https://github.com/starbops/gottodo","last_synced_at":"2026-04-05T22:04:03.514Z","repository":{"id":281629529,"uuid":"945515878","full_name":"starbops/gottodo","owner":"starbops","description":"Got anything to do?","archived":false,"fork":false,"pushed_at":"2025-03-10T09:19:32.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-10T10:27:37.117Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/starbops.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":"2025-03-09T15:57:24.000Z","updated_at":"2025-03-10T09:19:36.000Z","dependencies_parsed_at":"2025-03-10T10:37:51.390Z","dependency_job_id":null,"html_url":"https://github.com/starbops/gottodo","commit_stats":null,"previous_names":["starbops/gottodo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starbops%2Fgottodo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starbops%2Fgottodo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starbops%2Fgottodo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/starbops%2Fgottodo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/starbops","download_url":"https://codeload.github.com/starbops/gottodo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244520150,"owners_count":20465627,"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":"2025-03-19T22:52:39.004Z","updated_at":"2025-12-31T00:11:06.223Z","avatar_url":"https://github.com/starbops.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## GotToDo - A Todo App with Go, Templ, Tailwind CSS, and HTMX\n\nGotToDo is a simple Todo application built with modern web technologies:\n\n- **Backend**: Go with Echo web framework\n- **Frontend**: Uses HTMX for interactivity with minimal JavaScript\n- **Styling**: Tailwind CSS for a clean, responsive design\n- **Templates**: Templ for type-safe HTML templating\n- **Authentication**: GitHub OAuth integration\n- **Database**: Supabase for data storage\n\n## Features\n\n- User authentication with GitHub OAuth or email/password\n- Create, read, update, and delete todo items\n- Mark todos as complete or incomplete\n- Clean, responsive UI with Tailwind CSS\n- Interactive UI with HTMX for minimal JavaScript\n- Type-safe templating with Templ\n\n## Project Structure\n\n```\n.\n├── cmd/\n│   └── server/           # Main application entry point\n├── docs/                 # Documentation\n├── internal/\n│   ├── handlers/         # HTTP handlers\n│   ├── models/           # Data models\n│   ├── repositories/     # Data access layer\n│   └── services/         # Business logic\n├── migrations/           # Database migrations\n├── pkg/\n│   ├── auth/             # Authentication utilities\n│   ├── config/           # Configuration management\n│   └── database/         # Database utilities and client\n├── ui/\n│   └── templates/        # Templ templates for all UI components\n│       ├── layout.templ  # Layout templates\n│       ├── todo.templ    # Todo-related templates\n│       ├── pages.templ   # Page templates\n│       └── ajax.templ    # AJAX response templates\n```\n\n## Setup Instructions\n\n### Prerequisites\n\n- Go 1.21+\n- Supabase account (for production use)\n\n### Configuration\n\nGotToDo uses a single JSON configuration file for all application settings. You can specify the configuration file path using the `-config` command-line flag when starting the application.\n\nIf no configuration file exists at the specified location (or the default location if no path is specified), a default configuration file will be created automatically.\n\nExample configuration file:\n\n```json\n{\n  \"repository\": {\n    \"type\": \"memory\"\n  },\n  \"server\": {\n    \"port\": \"8080\"\n  },\n  \"database\": {\n    \"supabase_url\": \"your_supabase_url\",\n    \"supabase_anon_key\": \"your_supabase_anon_key\",\n    \"supabase_db_url\": \"your_supabase_db_url\"\n  },\n  \"auth\": {\n    \"github_client_id\": \"your_github_client_id\",\n    \"github_client_secret\": \"your_github_client_secret\",\n    \"github_redirect_url\": \"http://localhost:8080/auth/github/callback\"\n  }\n}\n```\n\nAvailable repository types:\n- `memory`: Stores todos in memory (data will be lost when the application restarts)\n- `supabase`: Stores todos in a Supabase PostgreSQL database\n\n### Running the Application\n\n1. Install dependencies:\n   ```\n   go mod download\n   ```\n\n2. Generate Templ templates:\n   ```\n   cd ui \u0026\u0026 go install github.com/a-h/templ/cmd/templ@latest \u0026\u0026 templ generate\n   ```\n\n3. Run the application with the default configuration:\n   ```\n   go run cmd/server/main.go\n   ```\n\n   Or specify a custom configuration file path:\n   ```\n   go run cmd/server/main.go -config /path/to/config.json\n   ```\n\n4. Access the application at `http://localhost:8080` (or the port specified in your configuration)\n\n## Why Templ?\n\nTempl is a type-safe HTML templating language for Go that:\n\n- Provides compile-time type checking for templates\n- Integrates seamlessly with Go code\n- Allows for component-based design\n- Prevents common templating errors\n- Makes refactoring safer\n\n## Why HTMX?\n\nHTMX allows us to build interactive web applications with minimal JavaScript by:\n\n- Using HTML attributes to trigger AJAX requests\n- Updating the DOM with server responses\n- Providing smooth transitions and animations\n- Reducing the need for client-side JavaScript\n\n## Development\n\n### Working with Templ Templates\n\nTempl templates are defined in the `ui/templates` directory. After modifying templates, regenerate the Go code:\n\n```\ncd ui \u0026\u0026 templ generate\n```\n\n### Adding New Templates\n\n1. Create a new `.templ` file in the appropriate directory\n2. Define your templates using the Templ syntax\n3. Regenerate the Go code\n4. Use your templates in handlers\n\n### Repository Implementation\n\nThe application supports multiple repository implementations:\n\n- `MemoryTodoRepository`: In-memory storage for development\n- `SupabaseTodoRepository`: Supabase PostgreSQL storage for production\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarbops%2Fgottodo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarbops%2Fgottodo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarbops%2Fgottodo/lists"}