This sample demonstrates how to run an ASP.NET Core HotChocolate GraphQL backend together with a React client using the Syncfusion React Grid component to perform CRUD operations seamlessly.
ASP.NET Core workload required.
Check:
node --version
- Open folder:
reactapp1.client
- Run:
npm install
- Open:
ReactApp1.sln
- Set
ReactApp1.Serveras startup project. - Press F5 to run server + client.
The Grid will load data from the GraphQL endpoint:
https://localhost:<port>/graphql
- Program.cs: Configures HotChocolate GraphQL server
- GraphQL/: Contains GraphQL queries, mutations, and types
- Models/: Data models
- Controllers/: API controllers
- src/: React application source code
- package.json: Node.js dependencies including Syncfusion React Grid
- vite.config.js: Vite configuration
-
Open the DownGit Website
Go to the official DownGit tool: https://downgit.github.io/#/home
-
Copy the GitHub URL
- Navigate to the sample folder you want to download and copy its URL.
- Example : https://github.com/SyncfusionExamples/ej2-react-grid-samples/tree/master/connecting-to-backends/syncfusion-reactgrid-with-hotchocolate-graphQL-server
-
Paste the URL into DownGit
In the DownGit input box, paste the copied GitHub URL.
-
Download the ZIP
- Click Download.
- DownGit will generate a ZIP file of the selected folder, which you can save and extract locally.