{"id":20245427,"url":"https://github.com/letsmakecakes/todo-app","last_synced_at":"2026-05-06T10:34:18.757Z","repository":{"id":248896620,"uuid":"825761990","full_name":"letsmakecakes/todo-app","owner":"letsmakecakes","description":"The To-Do application is a web-based task management tool built with Golang, HTML, CSS, and JavaScript. Featuring user authentication, task creation, updating, deletion, and filtering, it uses the Fiber framework and PostgreSQL database","archived":false,"fork":false,"pushed_at":"2024-07-17T16:07:33.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T20:08:36.378Z","etag":null,"topics":["css","golang","html","javacript","pos"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/letsmakecakes.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-07-08T12:53:41.000Z","updated_at":"2024-07-17T16:09:33.000Z","dependencies_parsed_at":"2024-07-17T20:12:28.134Z","dependency_job_id":null,"html_url":"https://github.com/letsmakecakes/todo-app","commit_stats":null,"previous_names":["letsmakecakes/todo-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/letsmakecakes/todo-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsmakecakes%2Ftodo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsmakecakes%2Ftodo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsmakecakes%2Ftodo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsmakecakes%2Ftodo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letsmakecakes","download_url":"https://codeload.github.com/letsmakecakes/todo-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsmakecakes%2Ftodo-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281382428,"owners_count":26491309,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["css","golang","html","javacript","pos"],"created_at":"2024-11-14T09:20:55.172Z","updated_at":"2025-10-28T04:08:22.445Z","avatar_url":"https://github.com/letsmakecakes.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# To-Do Application\n\nThis is a To-Do application built using Golang, HTML, CSS, and JavaScript. The backend is powered by the Fiber framework and a PostgreSQL database.\n\n## Features\n\n- User authentication (sign-up and log-in)\n- Task creation, updating, deletion\n- Task status updates\n- Task filtering by status\n- Retrieve details of individual tasks\n\n### System Design Diagram\n\n![System Design](img.png)\n\n## API Endpoints\n\n### User Authentication\n\n#### Sign-up\n\n- **Endpoint:** `POST /signup`\n- **Description:** Register a new user.\n- **Request Body:**\n    ```json\n    {\n        \"username\": \"string\",\n        \"password\": \"string\"\n    }\n    ```\n- **Response:**\n    ```json\n    {\n        \"message\": \"User created successfully.\"\n    }\n    ```\n\n#### Log-in\n\n- **Endpoint:** `POST /login`\n- **Description:** Authenticate a user and return a token.\n- **Request Body:**\n    ```json\n    {\n        \"username\": \"string\",\n        \"password\": \"string\"\n    }\n    ```\n- **Response:**\n    ```json\n    {\n        \"token\": \"jwt_token\"\n    }\n    ```\n\n### User Management\n\n#### Get User Details\n\n- **Endpoint:** `GET /users/{userId}`\n- **Description:** Retrieve user details by user ID.\n- **Request Headers:**\n    ```\n    Authorization: Bearer jwt_token\n    ```\n- **Response:**\n    ```json\n    {\n        \"userId\": \"integer\",\n        \"username\": \"string\"\n    }\n    ```\n\n### Task Management\n\n#### Create Task\n\n- **Endpoint:** `POST /tasks`\n- **Description:** Create a new task.\n- **Request Headers:**\n    ```\n    Authorization: Bearer jwt_token\n    ```\n- **Request Body:**\n    ```json\n    {\n        \"title\": \"string\",\n        \"description\": \"string\",\n        \"status\": \"string\"  // e.g., \"pending\", \"completed\"\n    }\n    ```\n- **Response:**\n    ```json\n    {\n        \"taskId\": \"integer\",\n        \"message\": \"Task created successfully.\"\n    }\n    ```\n\n#### Update Task\n\n- **Endpoint:** `PUT /tasks/{taskId}`\n- **Description:** Update an existing task.\n- **Request Headers:**\n    ```\n    Authorization: Bearer jwt_token\n    ```\n- **Request Body:**\n    ```json\n    {\n        \"title\": \"string\",\n        \"description\": \"string\",\n        \"status\": \"string\"  // e.g., \"pending\", \"completed\"\n    }\n    ```\n- **Response:**\n    ```json\n    {\n        \"message\": \"Task updated successfully.\"\n    }\n    ```\n\n#### Delete Task\n\n- **Endpoint:** `DELETE /tasks/{taskId}`\n- **Description:** Delete a task by task ID.\n- **Request Headers:**\n    ```\n    Authorization: Bearer jwt_token\n    ```\n- **Response:**\n    ```json\n    {\n        \"message\": \"Task deleted successfully.\"\n    }\n    ```\n\n#### Get Task List\n\n- **Endpoint:** `GET /tasks`\n- **Description:** Retrieve a list of tasks with optional filters.\n- **Request Headers:**\n    ```\n    Authorization: Bearer jwt_token\n    ```\n- **Request Parameters:**\n    - `status` (optional): Filter tasks by status (e.g., `pending`, `completed`).\n- **Response:**\n    ```json\n    {\n        \"tasks\": [\n            {\n                \"taskId\": \"integer\",\n                \"title\": \"string\",\n                \"description\": \"string\",\n                \"status\": \"string\",\n                \"createdAt\": \"datetime\",\n                \"updatedAt\": \"datetime\"\n            },\n            ...\n        ]\n    }\n    ```\n\n#### Get Task Details\n\n- **Endpoint:** `GET /tasks/{taskId}`\n- **Description:** Retrieve details of a specific task by task ID.\n- **Request Headers:**\n    ```\n    Authorization: Bearer jwt_token\n    ```\n- **Response:**\n    ```json\n    {\n        \"taskId\": \"integer\",\n        \"title\": \"string\",\n        \"description\": \"string\",\n        \"status\": \"string\",\n        \"createdAt\": \"datetime\",\n        \"updatedAt\": \"datetime\"\n    }\n    ```\n\n## Getting Started\n\n### Prerequisites\n\n- Go 1.16 or later\n- PostgreSQL\n- Fiber framework\n- HTML, CSS, JavaScript\n\n### Installation\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/yourusername/todo-app.git\n    cd todo-app\n    ```\n\n2. Install dependencies:\n    ```sh\n    go get -u github.com/gofiber/fiber/v2\n    go get -u github.com/gofiber/template/html/v2\n    go get -u github.com/lib/pq\n    ```\n\n3. Set up the PostgreSQL database and update the connection string in the code:\n    ```sh\n    postgresql://\u003cusername\u003e:\u003cpassword\u003e@\u003caddress\u003e/\u003cdatabase_name\u003e?sslmode=disable\n    ```\n\n4. Run the application:\n    ```sh\n    go run server.go\n    ```\n\n### Usage\n\nAccess the application at [http://localhost:3000](http://localhost:3000).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsmakecakes%2Ftodo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletsmakecakes%2Ftodo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsmakecakes%2Ftodo-app/lists"}