https://github.com/simply007/kontent-starter-graphql-net
Sample .Net core MVC app with GraphQL.Client
https://github.com/simply007/kontent-starter-graphql-net
kontent-ai kontent-ai-sample
Last synced: 12 months ago
JSON representation
Sample .Net core MVC app with GraphQL.Client
- Host: GitHub
- URL: https://github.com/simply007/kontent-starter-graphql-net
- Owner: Simply007
- Created: 2021-08-04T16:22:37.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-21T20:34:29.000Z (over 4 years ago)
- Last Synced: 2025-04-04T22:27:57.694Z (about 1 year ago)
- Topics: kontent-ai, kontent-ai-sample
- Language: C#
- Homepage:
- Size: 802 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL Kontent Starter
## Get started
### Prerequisites
* [Node.js](https://nodejs.org/en/)
* [Dotnet 5.0](https://www.microsoft.com/net/download/core)
### Generate models
1. Enter the project to directory (with `package.json` file)
1. Install dependencies
```sh
npm i
```
1. Run the application
```sh
npm run generate:models
```
### Start
> You need to [generate models first](#generate-models).
1. Enter the project toot directory (with `GraphQLWebStarter.sln` file)
1. build solution
```sh
dotnet build
```
1. Run the application
```sh
dotnet run --project ./GraphQLWebStarter
```
### Tests
1. Enter the project toot directory (with `GraphQLWebStarter.sln` file)
1. build solution
```sh
dotnet build
```
1. Run all tests
```sh
dotnet test
```
## About
All code is in `HomeController` and it is using [`GraphQL.Client` package](https://github.com/graphql-dotnet/graphql-client) and `GraphQL.Client.Serializer.Newtonsoft` for serialization.
