{"id":21857580,"url":"https://github.com/hjerpbakk/graphqldotnet","last_synced_at":"2025-09-05T16:12:27.717Z","repository":{"id":149284360,"uuid":"218719332","full_name":"hjerpbakk/GraphQLDotNet","owner":"hjerpbakk","description":"Educational repository showcasing a GraphQL API consumed by a Xamarin Forms app.","archived":false,"fork":false,"pushed_at":"2022-12-08T09:13:12.000Z","size":6963,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T18:48:17.131Z","etag":null,"topics":["appcenter","asp-net-core-web-api","csharp","graphql","openweather","xamarin","xamarin-android","xamarin-forms","xamarin-ios","xaml"],"latest_commit_sha":null,"homepage":"","language":"C#","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/hjerpbakk.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}},"created_at":"2019-10-31T08:32:22.000Z","updated_at":"2023-03-17T12:20:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"9fbce59c-b84e-4832-b073-73e93cff80bf","html_url":"https://github.com/hjerpbakk/GraphQLDotNet","commit_stats":null,"previous_names":["hjerpbakk/graphqldotnet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hjerpbakk/GraphQLDotNet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2FGraphQLDotNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2FGraphQLDotNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2FGraphQLDotNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2FGraphQLDotNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hjerpbakk","download_url":"https://codeload.github.com/hjerpbakk/GraphQLDotNet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hjerpbakk%2FGraphQLDotNet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273782458,"owners_count":25167134,"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-09-05T02:00:09.113Z","response_time":402,"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":["appcenter","asp-net-core-web-api","csharp","graphql","openweather","xamarin","xamarin-android","xamarin-forms","xamarin-ios","xaml"],"created_at":"2024-11-28T02:30:05.554Z","updated_at":"2025-09-05T16:12:27.693Z","avatar_url":"https://github.com/hjerpbakk.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weather--\n\n![Screenshots of the app](screens.PNG)\n\n## An app showcasing GraphQL with ASP.Net Core 3 and Xamarin Forms\n\nThis is an educational repository showcasing a GraphQL API consumed by a Xamarin Forms app. This repository can be used as a template for:\n\n- a modern Xamarin Forms 4.3 app with clean and testable architecture consuming a GraphQL endpoint\n- an Asp.Net Core 3 GraphQL server in front of the [OpenWeather](https://openweathermap.org) APIs\n\nThe API can be explored on [https://graphql-weather.azurewebsites.net/ui/playground](https://graphql-weather.azurewebsites.net/ui/playground).\n\nThe code uses some of the new features of C# 8, such as nullable reference types.\n\nI've given a presentation on modern Xamarin Forms and this repo in particular at a local .Net User Group meeting, and you can view the slides below here:\n\nhttps://speakerdeck.com/sankra/xamarin-forms-from-duplo-to-lego\n\n## Run locally\n\nThe apps needs a tiny bit configuration before running locally:\n\n### The server\n\nThe server needs an *OpenWeather API key*, which is available for free on [openweather.org](https://openweathermap.org). This key must be set as an environment variable or present in `appsettings.json` for the server to run:\n\n```shell\nOpenWeatherConfiguration__ApiKey=\"[APIKEY]\"\n```\n\nTo run the server after configuration is in place, navigate to the `/src/API/GraphQLDotNet.API`-folder, and run:\n\n```shell\ndotnet run\n```\n\n### The apps\n\nThe apps need the *address of the server* and optionally an *AppCenter secret*, for iOS and/or Android, to use crash reporting and analytics in AppCenter. These must be specified in a `secrets.json` file present at the root of the `src/Mobile/GraphQLDotNet.Mobile` project. This file is ignored by Git.\n\nIf the server is running locally, you can use:\n\n```json\n{\n  \"ApiBaseAddress\": \"localhost\",\n  \"AppCenteriOsSecret\": \"\",\n  \"AppCenterAndroidSecret\": \"\"\n}\n```\n\nThen either `GraphQLDotNet.Mobile.Android` or `GraphQLDotNet.Mobile.iOS` can be run from Visual Studio.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjerpbakk%2Fgraphqldotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhjerpbakk%2Fgraphqldotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhjerpbakk%2Fgraphqldotnet/lists"}