{"id":16426597,"url":"https://github.com/andrebraghini/tasks-api","last_synced_at":"2025-02-25T03:23:30.040Z","repository":{"id":121044039,"uuid":"423347814","full_name":"andrebraghini/tasks-api","owner":"andrebraghini","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-01T05:37:25.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T16:43:27.539Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/andrebraghini.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":"2021-11-01T05:27:58.000Z","updated_at":"2021-11-01T05:37:29.000Z","dependencies_parsed_at":"2023-04-24T14:41:07.201Z","dependency_job_id":null,"html_url":"https://github.com/andrebraghini/tasks-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrebraghini%2Ftasks-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrebraghini%2Ftasks-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrebraghini%2Ftasks-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrebraghini%2Ftasks-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrebraghini","download_url":"https://codeload.github.com/andrebraghini/tasks-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240594447,"owners_count":19826169,"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-10-11T08:09:40.857Z","updated_at":"2025-02-25T03:23:29.865Z","avatar_url":"https://github.com/andrebraghini.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tasks-api\n\n\n## Running on docker\n\nRun the **build.sh** file to install dependencies and build the projects.\nAfter that, you can run the `docker compose up`.\n\n```sh\n# Install dependencies and Build projects\n./build.sh\n\n# Run docker compose\ndocker compose up -d\n```\n\nOpen Apollo Explorer https://studio.apollographql.com/sandbox/explorer to explore the local server running at http://localhost:4000\n\n\n### Step by step test\n\n1. Sign up\n```graph\nmutation {\n  signUp(username: \"josh\", password: \"abc123\")\n}\n```\n\n2. Login\n```graph\nquery {\n  login(username: \"josh\", password: \"abc123\") {\n    access_token\n  }\n}\n```\n\n3. Add new task (Use the access_token from login as Authentication Bearer Token on headers)\n```graph\nmutation {\n  addTask(title: \"Do something\", description: \"Do it fast\", status: TODO)\n}\n```\n\n4. Get all user tasks (Use the access_token from login as Authentication Bearer Token on headers)\n```graph\nquery {\n  tasks {\n    id\n    title\n    description\n    status\n  }\n}\n```\n\n5. Update task (Use the access_token from login as Authentication Bearer Token on headers)\n```graph\nmutation {\n  updateTask(id: \"fe52e7da-4895-4ee9-8888-31cd4fe4c368\", status: IN_PROGRESS) {\n    id\n    title\n    description\n    status\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrebraghini%2Ftasks-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrebraghini%2Ftasks-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrebraghini%2Ftasks-api/lists"}