Coder Social home page Coder Social logo

brminnick / dotnetgraphql Goto Github PK

View Code? Open in Web Editor NEW
79.0 7.0 23.0 1.34 MB

A sample demonstrating how to create a GraphQL Backend in .NET using `GraphQL-Dotnet` and consume it from a .NET mobile app created using Xamarin

Home Page: https://codetraveler.io/GraphQLSummit-DotNet

License: MIT License

C# 1.76% HTML 0.01% JavaScript 96.76% CSS 1.47%
graphql-api graphql-backend graphiql android ios xamarin xamarin-forms xamarin-ios xamarin-android xamarin-graphql graphql graphql-server graphql-client graphql-dotnet

dotnetgraphql's Introduction

Build Solution

GraphQL in .NET

If you're new to GraphQL, check out these videos featured in the Learn More section, below

To run this sample, follow the Getting Started Instructions, below.

This app was featured at GraphQL Summit 2019.

Video Recordings

Consuming GraphQL in C#

This session on GraphQL + C# was delivered at GraphQL Summit 2019. It demonstrates how to create a GraphQL Backend in C# and connect it to a client-side mobile app written in C# using Xamarin.

Consuming GraphQL in C#

Xamarin + GraphQL

The session on Xamarin + GraphQL was delivered at Xamarin Developer Summit 2019. It demonstrates how to create a Xamarin app in C# and connect it to an existing GraphQL Backend.

Xamarin + GraphQL Video

Learning GraphQL Series

This special series teaches the basics of GraphQL, how to interact with an existing GraphQL endpoint, how to create your first GraphQL Server, and how to deploy your GraphQL Server to the cloud using Azure!

Learning GraphQL Series

On .NET Show

In this series, we cover how to create an end-to-end soolution, creating GraphQL Backend in C# and connecting to it from a C# client.

On .NET Show

App Architecture

GraphQL Backend

The GraphQL backend is created in C# using the GraphQL NuGet Package.

GraphiQL
GraphiQL

Mobile

The mobile app is created in C# using Xamarin and the GraphQL.Client NuGet Package.

Xamarin.iOS Xamarin.Android

Getting Started

This app requires us to run the GraphQL API using the terminal while using Visual Studio to build/deploy the Xamarin.iOS and/or Xamarin.Android app.

1. Run the GraphQL API

  1. Open the terminal
  2. In the terminal, clone this solution by entering the following command:
    • Note: If you have already downloaded the solution, skip this step
git clone https://github.com/brminnick/dotnetgraphql.git
  1. In the terminal, navigate to the DotNetGraphQL.API folder by entering the following command:
  • On Windows
cd [path to DotNetGraphQL folder]\Source\DotNetGraphQL.API\
  • On macOS
cd [path to DotNetGraphQL folder]/Source/DotNetGraphQL.API/
  1. In the terminal, run DotNetGraphQL.API.csproj by entering the following command:
dotnet run
  1. Open a web browser
  2. In the web browser, navgiate to http://localhost:4000
  3. Confirm GraphiQL

2. Run the Xamarin.Android App

  1. In Visual Studio, open DotNetGraphQL/Source/DotNetGraphQL.sln
  2. In Visual Studio, in the Solution Explorer, right-click on DotNetGraphQL.Android
  3. In the right-click menu, select Set as Startup Project
  4. In Visual Studio, build/deploy DotNetGraphQL.Android to an Android device
  5. Confirm the list of dogs from the GraphQL API appears

Learn More

Learn more about Xamarin + GraphQL

Docs

Xamarin Resources

GraphQL Resources

dotnetgraphql's People

Contributors

azureadvocatebit avatar brminnick avatar dependabot[bot] avatar dylanbeattie avatar robgibbens avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotnetgraphql's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.