{"id":49331950,"url":"https://github.com/jagthefriend/smart-task-planner-app","last_synced_at":"2026-04-26T23:01:07.253Z","repository":{"id":337836147,"uuid":"1155416805","full_name":"JagTheFriend/Smart-Task-Planner-App","owner":"JagTheFriend","description":"A backend for a productivity web application","archived":false,"fork":false,"pushed_at":"2026-02-11T14:27:52.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-11T22:36:41.203Z","etag":null,"topics":["backend-api","echo","golang","gorm","jwt","postrgesql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JagTheFriend.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-11T13:46:30.000Z","updated_at":"2026-02-11T14:27:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/JagTheFriend/Smart-Task-Planner-App","commit_stats":null,"previous_names":["jagthefriend/smart-task-planner-app"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/JagTheFriend/Smart-Task-Planner-App","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JagTheFriend%2FSmart-Task-Planner-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JagTheFriend%2FSmart-Task-Planner-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JagTheFriend%2FSmart-Task-Planner-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JagTheFriend%2FSmart-Task-Planner-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JagTheFriend","download_url":"https://codeload.github.com/JagTheFriend/Smart-Task-Planner-App/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JagTheFriend%2FSmart-Task-Planner-App/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32315712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"last_error":"SSL_read: 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":["backend-api","echo","golang","gorm","jwt","postrgesql"],"created_at":"2026-04-26T23:01:06.134Z","updated_at":"2026-04-26T23:01:07.246Z","avatar_url":"https://github.com/JagTheFriend.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart Task Planner API\n\nSmart Task Planner is a RESTful backend service built with Go, Echo v5, GORM, and PostgreSQL. It provides JWT-based authentication and task management functionality, allowing users to securely create, retrieve, update, and delete tasks.\n\n## Technology Stack\n\n* Go (Golang)\n* Echo v5 (HTTP Framework)\n* GORM (ORM)\n* PostgreSQL\n* JWT (Authentication)\n\n---\n\n## Features\n\n* User registration\n* User login with JWT token generation\n* Protected task routes\n* Create task\n* Get all tasks (user-specific)\n* Update task (partial updates supported)\n* Delete task\n* Ownership protection (users can access only their tasks)\n\n---\n\n## Environment Variables\n\nCreate a `.env` file or configure environment variables:\n\n```\nPORT=3000\nDB_DSN=host=your_host user=your_user password=your_password dbname=your_db port=5432 sslmode=require TimeZone=UTC\nJWT_KEY=your_secret_key\n```\n\n---\n\n## Installation\n\n### 1. Clone the repository\n\n```\ngit clone https://github.com/JagTheFriend/Smart-Task-Planner-App.git\ncd smart-task-planner\n```\n\n### 2. Install dependencies\n\n```\ngo mod tidy\n```\n\n### 3. Run the application\n\n```\ngo run main.go\n```\n\nServer will start on:\n\n```\nhttp://localhost:3000\n```\n\n---\n\n## API Endpoints\n\nBase path:\n\n```\n/api/v1\n```\n\n---\n\n### Authentication\n\n#### Signup\n\n```\nPOST /api/v1/auth/signup\n```\n\nRequest Body:\n\n```json\n{\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\",\n  \"password\": \"password123\"\n}\n```\n\n---\n\n#### Login\n\n```\nPOST /api/v1/auth/login\n```\n\nRequest Body:\n\n```json\n{\n  \"email\": \"john@example.com\",\n  \"password\": \"password123\"\n}\n```\n\nResponse:\n\n```json\n{\n  \"message\": \"\u003cJWT_TOKEN\u003e\"\n}\n```\n\n---\n\n### Task Management\n\nAll task routes require:\n\n```\nAuthorization: Bearer \u003cJWT_TOKEN\u003e\n```\n\n---\n\n#### Create Task\n\n```\nPOST /api/v1/task\n```\n\nRequest Body:\n\n```json\n{\n  \"title\": \"Complete API\",\n  \"description\": \"Implement CRUD operations\",\n  \"deadline\": \"2026-02-20T18:00:00Z\"\n}\n```\n\n---\n\n#### Get Tasks\n\n```\nGET /api/v1/task\n```\n\nReturns all tasks belonging to the authenticated user.\n\n---\n\n#### Update Task\n\n```\nPUT /api/v1/task\n```\n\nRequest Body:\n\n```json\n{\n  \"id\": 1,\n  \"title\": \"Updated Title\",\n  \"completed\": true\n}\n```\n\nOnly `id` is required. Other fields are optional.\n\n---\n\n#### Delete Task\n\n```\nDELETE /api/v1/task?id=1\n```\n\n---\n\n## Security\n\n* JWT-based authentication\n* Route protection using middleware\n* User-specific task isolation\n* Secure password handling (recommended: hash before storing)\n\n---\n\n## Error Handling\n\n* Structured error responses\n* Proper HTTP status codes\n* Panic recovery middleware enabled\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagthefriend%2Fsmart-task-planner-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjagthefriend%2Fsmart-task-planner-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjagthefriend%2Fsmart-task-planner-app/lists"}