Sample project demonstrating a GraphQL service built with ASP.NET Core 2, Entity Framework Core and graphql-dotnet.
Switch branches/tags
Nothing to show
Clone or download
Latest commit ed80a8d Apr 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Final tweaks. Apr 18, 2018
.gitignore Initial commit Mar 11, 2018
LICENSE Initial commit Mar 11, 2018
README.md Update README.md Apr 18, 2018

README.md

ASPNetCoreGraphQL

Sample project based on the blog post demonstrating how to build a GraphQL service powered by ASP.NET Core 2, Entity Framework Core and graphql-dotnet.

Development Environment

  • .NET Core 2.0 SDK
  • Visual Studio Code v1.21.1 (Should also work in VS2017)
  • Sql Server Management Studio 2017

Project Setup

The project is configured to create and seed the database at runtime if necessary so there shouldn't be any initial setup required. Simply start the debugger from the IDE or run it directly using the CLI dotnet run command from the root of the \NHLStats.Api folder.

After running the project, verify the database was created in your local Sql Server LocalDB instance.

Alternatively, you can also apply the existing migrations to create the database by running dotnet ef database update from the \NHLStats.Data folder. The seed data will be inserted on first run of the application.

The API is configured to run on port 5000, if this conflicts with some other service on your computer you can change it here.

Contact

mark@fullstackmark.com