{"id":13566458,"url":"https://github.com/graphql-editor/graphql-backend-template-dgraph","last_synced_at":"2025-04-22T23:27:12.986Z","repository":{"id":35618608,"uuid":"218558204","full_name":"graphql-editor/graphql-backend-template-dgraph","owner":"graphql-editor","description":"Dgraph GraphQL Editor template for backend using very fast dgraph golang database server under the hood","archived":false,"fork":false,"pushed_at":"2022-04-28T21:25:56.000Z","size":1353,"stargazers_count":46,"open_issues_count":3,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-17T16:03:16.724Z","etag":null,"topics":["backend","boilerplate","database","dgraph","graphql","native"],"latest_commit_sha":null,"homepage":"","language":null,"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/graphql-editor.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}},"created_at":"2019-10-30T15:21:47.000Z","updated_at":"2023-09-13T13:23:00.000Z","dependencies_parsed_at":"2022-08-08T09:31:49.668Z","dependency_job_id":null,"html_url":"https://github.com/graphql-editor/graphql-backend-template-dgraph","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/graphql-editor%2Fgraphql-backend-template-dgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-editor%2Fgraphql-backend-template-dgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-editor%2Fgraphql-backend-template-dgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-editor%2Fgraphql-backend-template-dgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphql-editor","download_url":"https://codeload.github.com/graphql-editor/graphql-backend-template-dgraph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250339362,"owners_count":21414345,"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":["backend","boilerplate","database","dgraph","graphql","native"],"created_at":"2024-08-01T13:02:10.174Z","updated_at":"2025-04-22T23:27:12.970Z","avatar_url":"https://github.com/graphql-editor.png","language":null,"readme":"# GraphQL Editor Team - Dgraph Backend template\n\nThis template is worth 2020 ✨.\n\nBrought by [GraphQL Editor Team](https://graphqleditor.com)\n\n## Why?\n\nYou get database with graphql interface for storing your data just from GraphQL Schema. \n\n## How it works\n\nLike that, and it is only from GraphQL Schema!! :\n\n![](graphqldgraph.gif)\n\n## Dependencies\n\n[Docker](https://docs.docker.com/install/)\n\n[jq](https://stedolan.github.io/jq/) \n\nThese 2 are needed to run this\n\n`npm`\n\n## Quick Start\n\nClone this repo\n\n```\ngit clone https://github.com/graphql-editor/graphql-backend-template-dgraph\n```\n\n```sh\nnpm install\n```\n\nTo start with this template you will need GraphQL Schema. Create one with [GraphQL Editor](https://app.graphqleditor.com) and copy its contents to `schema.graphql` file. \nExample schema can look like this [Schema](https://app.graphqleditor.com/dgraph-testing/finance)\nRemember when using Dgraph you need only Types, Interfaces and Enums. Also there is a small bug in Dgraph which doesnt allow comments in schema files.\n\nOr if you are lazy:\n\nForget about the schema and use one inside repo. Do nothing and proceed.\n\nRun this command in one terminal\n\n```\nnpm run dgraph\n```\n\nAnd run this command in the other one\n\n```\nnpm run inject-dgraph-schema\n```\n\nVoila. Your GraphQL native database is ready to use. Run queries in a tool like [Firecamp](https://firecamp.app), so Insomnia, GraphiQL etc.\n\n## Generate Client libraries\n\nWhen the server is running you can generate the actual dgraph generated schema file and autcomplete library for Javascript or TypeScript Frontend\n\n### Browser / React Native\n\n#### TypeScript\n```\nnpm run generate-nodets\n```\n\n#### Javascript\n```\nnpm run generate-nodejs\n```\n\n\n### Node\n\n#### TypeScript\n```\nnpm run generate-ts\n```\n\n#### Javascript\n```\nnpm run generate-js\n```\n\n## Author\n\n[Twitter](https://twitter.com/ACzemiel) - follow me for latest news with this boilerplate\n\n[Github](https://github/aexol) - follow me for latest news with this boilerplate\n\n\n## Under the hood\n\n[Dgraph](https://dgraph.io/)\n\n[Zeus](https://github.com/graphql-editor/graphql-zeus)\n\n## Additional resuources\n\n[Dgraph Definitions](https://app.graphqleditor.com/dgraph-testing/directives)\n[Dgraph tutorial](https://blog.dgraph.io/post/building-native-graphql-database-dgraph/)","funding_links":[],"categories":["Others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-editor%2Fgraphql-backend-template-dgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphql-editor%2Fgraphql-backend-template-dgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-editor%2Fgraphql-backend-template-dgraph/lists"}