{"id":15353429,"url":"https://github.com/puku0x/nestjs-todo-api","last_synced_at":"2026-01-07T00:33:18.196Z","repository":{"id":41786314,"uuid":"202827271","full_name":"puku0x/nestjs-todo-api","owner":"puku0x","description":"REST and GraphQL sample using NestJS + TypeORM + MySQL on Docker","archived":false,"fork":false,"pushed_at":"2023-01-23T23:55:52.000Z","size":1783,"stargazers_count":1,"open_issues_count":16,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T22:15:12.016Z","etag":null,"topics":["docker","graphql","mysql","nestjs","rest-api","typeorm","typescript"],"latest_commit_sha":null,"homepage":"http://localhost:3000/api/v1/todos","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/puku0x.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}},"created_at":"2019-08-17T02:52:19.000Z","updated_at":"2024-11-05T00:16:52.000Z","dependencies_parsed_at":"2023-02-13T05:15:49.511Z","dependency_job_id":null,"html_url":"https://github.com/puku0x/nestjs-todo-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/puku0x%2Fnestjs-todo-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puku0x%2Fnestjs-todo-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puku0x%2Fnestjs-todo-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puku0x%2Fnestjs-todo-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puku0x","download_url":"https://codeload.github.com/puku0x/nestjs-todo-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245908088,"owners_count":20692040,"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":["docker","graphql","mysql","nestjs","rest-api","typeorm","typescript"],"created_at":"2024-10-01T12:14:00.722Z","updated_at":"2026-01-07T00:33:18.168Z","avatar_url":"https://github.com/puku0x.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\nA sample repository of [Nest](https://github.com/nestjs/nest) + [TypeORM](https://github.com/typeorm/typeorm) on Docker.\n\n## Prerequirements\n\n- [Docker](https://www.docker.com/)\n\n## Installation\n\n```bash\n# install dependencies\n$ docker-compose run app npm ci\n```\n\n## Running the app\n\n```bash\n# development\n$ docker-compose up\n\n# shutting down containers\n$ docker-compose down\n```\n\n## Sample requests\n\n```bash\n$ curl -X POST http://localhost:3000/api/v1/todos \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"text\":\"todo\"}'\n$ curl -X GET http://localhost:3000/api/v1/todos\n$ curl -X GET http://localhost:3000/api/v1/todos/1\n$ curl -X PUT http://localhost:3000/api/v1/todos/1 \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"text\":\"done\", \"checked\":true}'\n$ curl -X DELETE http://localhost:3000/api/v1/todos/1\n```\n\n```\nquery {\n  todo(id: 1) {\n    id\n    text\n    checked\n    createdAt\n    updatedAt\n  }\n}\n\nquery {\n  todos {\n    id\n    text\n    checked\n    createdAt\n    updatedAt\n  }\n}\n\nmutation {\n  createTodo(text: \"todo\") {\n    id\n    text\n    checked\n    createdAt\n    updatedAt\n  }\n}\n\nmutation {\n  updateTodo(id: 1, text: \"done\", checked: false) {\n    id\n    text\n    checked\n    createdAt\n    updatedAt\n  }\n}\n\nmutation {\n  removeTodo(id: 1)\n}\n```\n\n## Test\n\n```bash\n# unit tests\n$ docker-compose run app npm test\n```\n\n## Build\n\n```bash\n# unit tests\n$ docker-compose run app npm run build\n```\n\n## License\n\nThis sample is [MIT licensed](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuku0x%2Fnestjs-todo-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuku0x%2Fnestjs-todo-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuku0x%2Fnestjs-todo-api/lists"}