{"id":13623994,"url":"https://github.com/biantris/koa-server","last_synced_at":"2025-05-12T17:24:41.878Z","repository":{"id":36984041,"uuid":"372072636","full_name":"biantris/koa-server","owner":"biantris","description":"🗄️ GraphQL Back-end Server with Relay, Koa, MongoDB and Mongoose","archived":false,"fork":false,"pushed_at":"2025-03-31T01:54:55.000Z","size":5884,"stargazers_count":51,"open_issues_count":19,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T01:01:40.197Z","etag":null,"topics":["graphql","graphql-server","koa","koajs","mongodb","mongoose","node","nodejs","relay"],"latest_commit_sha":null,"homepage":"https://koa-server-production.up.railway.app","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/biantris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"beatrizoliveira"}},"created_at":"2021-05-29T21:30:45.000Z","updated_at":"2025-02-18T23:11:58.000Z","dependencies_parsed_at":"2023-09-28T20:27:50.046Z","dependency_job_id":"b962614e-f73a-4737-b5c5-05dba813140a","html_url":"https://github.com/biantris/koa-server","commit_stats":{"total_commits":695,"total_committers":4,"mean_commits":173.75,"dds":"0.22589928057553954","last_synced_commit":"04da47ffd3e6691469d2b1bfdd5c489438a8978c"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biantris%2Fkoa-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biantris%2Fkoa-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biantris%2Fkoa-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biantris%2Fkoa-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biantris","download_url":"https://codeload.github.com/biantris/koa-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253785551,"owners_count":21963985,"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":["graphql","graphql-server","koa","koajs","mongodb","mongoose","node","nodejs","relay"],"created_at":"2024-08-01T21:01:37.692Z","updated_at":"2025-05-12T17:24:41.842Z","avatar_url":"https://github.com/biantris.png","language":"TypeScript","funding_links":["https://patreon.com/beatrizoliveira"],"categories":["TypeScript"],"sub_categories":[],"readme":"![image](https://user-images.githubusercontent.com/65451957/170831440-11ffbec9-5380-4513-9084-a6c09aa9dcdb.png)\n\n\u003ch1 align=\"center\"\u003e\n koa-server\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\nGraphQL Back-end Server with Relay, Koa, MongoDB and Mongoose\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://github.com/biantris/koa-server/actions\"\u003e\n      \u003cimg alt=\"Tests Passing\" src=\"https://github.com/biantris/koa-server/actions/workflows/test.yml/badge.svg\" /\u003e\n    \u003c/a\u003e\n    \u003ca href='https://coveralls.io/github/biantris/koa-server?branch=feat/codev'\u003e\n      \u003cimg src='https://coveralls.io/repos/github/biantris/koa-server/badge.svg?branch=feat/codev' alt='Coverage Status' /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://twitter.com/intent/follow?screen_name=biantris_\"\u003e\n        \u003cimg src=\"https://img.shields.io/twitter/follow/biantris_?style=social\u0026logo=twitter\"\n        alt=\"follow on Twitter\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e🚧 WIP 🚧\u003c/p\u003e\n\n\u003e **Note**\n\u003e See Front-end project [graphql-relay-web](https://github.com/biantris/graphql-relay-web)\n\n### Stack\n\n- [x] Koa\n- [x] MongoDB\n- [x] Mongoose\n- [x] GraphQL\n- [x] Relay\n- [x] Jest\n- [x] SuperTest\n- [x] Code Coverage(Coverall) [see](https://github.com/biantris/koa-server/issues/129)\n- [x] Linter (Eslint)\n- [x] Prettier\n\n### Project architecture\n\n```\n.\n├── graphql/\n│   └── schema.graphql\n├── script\n├── src/\n│   ├── __tests__\n│   ├── database\n│   ├── graphql\n│   ├── modules/\n│   │   ├── event/\n│   │   │   ├── __tests__\n│   │   │   ├── fixure\n│   │   │   ├── mutations/\n│   │   │   │   ├── __tests__\n│   │   │   │   ├── EventCreateMutation.ts\n│   │   │   │   ├── EventDeleteMutation.ts\n│   │   │   │   ├── EventUpdateMutation.ts\n│   │   │   │   └── index.ts\n│   │   │   ├── EventFilterInputType.ts\n│   │   │   ├── EventLoader.ts\n│   │   │   ├── EventModel.ts\n│   │   │   └── EventType.ts\n│   │   └── node/\n│   │       └── typeRegister.ts\n│   ├── schema/\n│   │   ├── MutationType.ts\n│   │   ├── QueryType.ts\n│   │   └── schema.ts\n│   └── shared\n└── test\n```\n\n### Getting Started\n\n- clone this repo\n\n```sh\n# install dependencies\n\u003e yarn\n# or\n\u003e yarn install\n\n# copy .env file\n\u003e cp .env.example .env\n\n# start project\n\u003e yarn start\n\n# see on GraphiQL graphql interface on localhost link\nhttp://localhost:9000/graphql\n\n# or see graphql Playground\nhttp://localhost:9000/playground\n```\n\n### Generating the schema\n\n```sh\n\u003e yarn schema\n```\n\n### Create events manually\n\n```sh\n\u003e yarn seed\n```\n\n## to-do\n\n- [projects](https://github.com/biantris/koa-server/projects/1)\n  ![image](https://user-images.githubusercontent.com/65451957/214913343-0bcb661f-a6be-453a-ac89-b09736cc8738.png)\n\n## demo\n\n- 🔗 https://koa-server-production.up.railway.app/\n- 🔗 https://koa-server-production.up.railway.app/graphql\n- 🔗 https://koa-server-production.up.railway.app/playground\n\n### Mutations\n\n- Event Create Mutation\n\n```graphql\nmutation {\n  EventCreate(\n    input: {\n      eventId: 564654\n      name: \"nice event\"\n      start: \"2022-07-01T00:00:00.000Z\"\n      end: \"2022-07-01T23:59:59.000Z\"\n      allDay: false\n    }\n  ) {\n    event {\n      id\n      name\n      start\n      end\n      allDay\n    }\n    error\n    success\n  }\n}\n```\n\n- Event delete Mutation\n\n```graphql\nmutation {\n  EventDelete(input: { eventId: \"629521641ff2c2c8f5f2e449\" }) {\n    eventId\n    error\n    success\n  }\n}\n```\n\n- Event Update Mutation\n\n```graphql\nmutation {\n  EventUpdate(\n    input: {\n      eventId: \"62952906f5c651ced019adf3\"\n      name: \"nice event /o/\"\n      start: \"2022-07-01T00:00:00.000Z\"\n      end: \"2022-07-01T23:59:59.000Z\"\n      allDay: false\n    }\n  ) {\n    event {\n      id\n      name\n      start\n      end\n      allDay\n    }\n    error\n    success\n  }\n}\n```\n\n### Queries\n\n- Event queries\n\n```graphql\nquery {\n  events {\n    edges {\n      node {\n        name\n        start\n        end\n        allDay\n      }\n    }\n  }\n}\n```\n\n## contributions\n\nFeel free to contribute to this project, if you find any bugs or improvements, open an issue and send a PR about it \\o/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiantris%2Fkoa-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiantris%2Fkoa-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiantris%2Fkoa-server/lists"}