{"id":20595273,"url":"https://github.com/myty/openbrewerydb-graphql-dotnet","last_synced_at":"2025-11-17T15:07:41.689Z","repository":{"id":49516269,"uuid":"237475670","full_name":"myty/openbrewerydb-graphql-dotnet","owner":"myty","description":"OpenBreweryDB API but GraphQL","archived":false,"fork":false,"pushed_at":"2021-09-29T00:35:10.000Z","size":1752,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T23:43:27.345Z","etag":null,"topics":["csharp","dotnet","graphql","graphql-dotnet","hacktoberfest","openbrewerydb","react"],"latest_commit_sha":null,"homepage":"","language":"C#","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/myty.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":"2020-01-31T16:58:26.000Z","updated_at":"2021-12-23T22:35:31.000Z","dependencies_parsed_at":"2022-08-31T20:25:21.367Z","dependency_job_id":null,"html_url":"https://github.com/myty/openbrewerydb-graphql-dotnet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/myty/openbrewerydb-graphql-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myty%2Fopenbrewerydb-graphql-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myty%2Fopenbrewerydb-graphql-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myty%2Fopenbrewerydb-graphql-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myty%2Fopenbrewerydb-graphql-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myty","download_url":"https://codeload.github.com/myty/openbrewerydb-graphql-dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myty%2Fopenbrewerydb-graphql-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284902951,"owners_count":27081976,"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","status":"online","status_checked_at":"2025-11-17T02:00:06.431Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["csharp","dotnet","graphql","graphql-dotnet","hacktoberfest","openbrewerydb","react"],"created_at":"2024-11-16T08:12:34.030Z","updated_at":"2025-11-17T15:07:41.674Z","avatar_url":"https://github.com/myty.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenBreweryDB - GraphQL (.NET Core)\n\nThis project is a learning tool and playground for ideas and concepts around GraphQL in the world of .NET Core and React. It was initially an exercise to learn GraphQL by taking an API like, https://www.openbrewerydb.org/ and transforming that into a GraphQL schema. I've experimented with [graphql-dotnet](https://github.com/graphql-dotnet/graphql-dotnet) as well as [Hot Chocolate](https://hotchocolate.io/). Both are well polished frameworks if you want to do GraphQL in .NET. Currently, I am focused on **graphql-dotnet**.\n\n## Prerequisites\n\n-   .NET Core 5\n-   Yarn/NPM\n-   Docker\n\n## Getting Started\n\nThis is using the latest bits from the graphql-dotnet/relay project and since that is not released on nuget yet, it is being referenced via a git submodules. Make sure you run this before you start on the dotnet portion of the code:\n\n    git submodule update --init --recursive\n\nTo get started, all of the prerequisites will need to be installed; and then run this from the command line:\n\n    yarn setup\n\n### Server (.NET Core)\n\nTo start the GraphQL server, run:\n\n    yarn dotnet\n\nThe first time this runs, it will download a SQL docker container, start it, and finally download seed data. Keep all of these inital steps in mind, since it will most liklet take a few minutes to get things spun up) _(Also, if you are running on Windows, make sure Docker is set for Linux containers)_\n\nOnce you see `Application started. Press Ctrl+C to shut down.`, go to this url, https://localhost:5001/api/graphql and play around with the GraphQL data and schema. It is using the Altair UI.\n\n### Client (React, Vite, TailwindCSS)\n\nIf you'd like to run a working frontend React sample application, in a separate terminal, you will need to do a few things:\n\n1.  You will need to get your own Google Maps API key. Here are instructions to do so: https://developers.google.com/maps/documentation/javascript/get-api-key\n\n2.  Once you have the key, you'll need to create a local environment file in the `frontend` folder. Name it `.env.local` and update the contents of the file to be something like this, but replacing the `xxxxxxxxx-xxxxxxxxx-xxxxxxxxx` with the actual API key:\n\n        VITE_GOOGLE_MAPS_KEY=xxxxxxxxx-xxxxxxxxx-xxxxxxxxx\n\n3.  Once that is all finished, you should be good to go, run:\n\n        yarn frontend\n\n4.  Navigate to http://localhost:3000/\n\n### Note\n\nWhen you are all finished and you want to stop your docker SQL instance container, you can run:\n\n    yarn db:stop\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyty%2Fopenbrewerydb-graphql-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyty%2Fopenbrewerydb-graphql-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyty%2Fopenbrewerydb-graphql-dotnet/lists"}