JeremyLikness / StarRepo

A .NET 6.0 ASP.NET Core hosts Blazor WebAssembly app demonstrating client and server GraphQL with HotChocolate.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StarRepo

This repository demonstrates how to use GraphQL in an ASP.NET Core server with a .NET client (in this example, Blazor WASM). It uses HotChocolate and StrawberryShake.

I built this example for the Tulsa .NET User Group.

It includes examples of queries, type extensions, resolvers, mutations, and subscriptions.

💡 TIP The project is only partially implemented. You can expand it as a learning exercise by adding these missing features: delete capabilities, "add telescope", target maintenance, and adding new observations.

Quickstart

  1. Clone the repo: git clone https://github.com/JeremyLikness/StarRepo
  2. Compile and run

The app is built to automatically create and seed the data.

⚠️ WARNING The app "as is" uses a Windows-specific API to generate thumbnails. You can see a compiler supression comment that wraps use of System.Common.Drawing that is not supported on other platforms. You can remove the code and reference to compile and run on other platforms.

Thanks,

@JeremyLikness

About

A .NET 6.0 ASP.NET Core hosts Blazor WebAssembly app demonstrating client and server GraphQL with HotChocolate.

License:MIT License


Languages

Language:C# 94.7%Language:HTML 4.1%Language:CSS 1.1%