{"id":23745035,"url":"https://github.com/kwangsing3/graphql-ts-basic","last_synced_at":"2026-05-10T03:02:57.579Z","repository":{"id":109423950,"uuid":"591906704","full_name":"kwangsing3/graphql-ts-basic","owner":"kwangsing3","description":"基於GraphcQL的設計介面，與MongoDB互動的Typescript web Server範例專案，主要用於教學與快速部屬","archived":false,"fork":false,"pushed_at":"2023-01-28T10:22:26.000Z","size":211,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T12:52:51.619Z","etag":null,"topics":["apollo-server","graphql","mongodb","quickbuild","template-repository","typescript"],"latest_commit_sha":null,"homepage":"","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/kwangsing3.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}},"created_at":"2023-01-22T09:55:26.000Z","updated_at":"2023-01-30T04:57:51.000Z","dependencies_parsed_at":"2023-03-23T03:47:17.438Z","dependency_job_id":null,"html_url":"https://github.com/kwangsing3/graphql-ts-basic","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fgraphql-ts-basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fgraphql-ts-basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fgraphql-ts-basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kwangsing3%2Fgraphql-ts-basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kwangsing3","download_url":"https://codeload.github.com/kwangsing3/graphql-ts-basic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239898460,"owners_count":19715212,"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":["apollo-server","graphql","mongodb","quickbuild","template-repository","typescript"],"created_at":"2024-12-31T12:52:57.053Z","updated_at":"2026-05-10T03:02:57.518Z","avatar_url":"https://github.com/kwangsing3.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql-ts-basic\n\n基於 GraphcQL 的設計介面，與 MongoDB 互動的 Typescript web Server 範例專案。\n\n[Youtube: Create A GraphQL API with Apollo Server V3 and MongoDB Atlas](https://youtu.be/uPxo9NQLVMI)\n\nIDE: visual code\n\n```\n  \"devDependencies\": {\n    \"@types/node\": \"^14.11.2\",\n    \"gts\": \"^3.1.1\",\n    \"ts-node\": \"^10.9.1\",\n    \"typescript\": \"~4.7.0\"\n  },\n  \"dependencies\": {\n    \"@apollo/server\": \"^4.3.1\",\n    \"graphql\": \"^16.6.0\",\n    \"mongoose\": \"^6.8.4\",\n    \"nodeman\": \"^1.1.2\"\n  }\n```\n\n# 範例實現的介面\n\n此範例專案實現幾個主要的 GraphQL 介面特性 :\n\n- 查詢 method (getSample)\n- 新增 method (createSample)\n- 修改 method (editSample)\n- 刪除 method (deleteSample)\n\n# How to start with?\n\n```bash\n$ git clone https://github.com/kwangsing3/graphql-ts-basic\n\n$ npm install\n\n$ tsc   # or  npm run build\n\n# or other script you know how to run   node build/index.js\n$ npm run node\n```\n\n# Screenshot\n\n```url\nhttp://localhost:4000/\n```\n\n- GraphQL 介面\n  ![alt text](doc/2023-01-23%20144205.jpg)\n\n- Query 查詢範例\n  ![alt text](doc/2023-01-23%20144734.jpg)\n\n# 作者聲明 Statement\n\n此專案是一個基於 TypeScript、MongoDB、GraphQL 的範例專案，\n\n```\nCopyright (C) \u003cyear\u003e \u003ccopyright holders\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this\nsoftware and associated documentation files (the \"Software\"), to deal in the\nSoftware without restriction, including without limitation the rights to use, copy,\nmodify, merge, publish, distribute, sublicense, and/or sell copies of the Software,\nand to permit persons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\nINCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n\n此專案的建立目的主要用於\n\n- 教學、範例\n- 快速建置可立即部屬使用的 GraphQL Server\n\n任何獲取此專案源碼的衍伸項目皆可以使用於任何包含但不限於 \"商業\" 、 \"個人\" 、 \"教學使用\"，如此專案的衍伸項目涉及觸犯相關國家的法律或規範，作者及相關貢獻者皆無須承擔相關的法律責任。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwangsing3%2Fgraphql-ts-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkwangsing3%2Fgraphql-ts-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwangsing3%2Fgraphql-ts-basic/lists"}