Skip to content

mmacneil/ASPNetCoreGraphQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ASPNetCoreGraphQL

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

Development Environment

  • .NET Core 2.2 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

Releases

No releases published

Packages

No packages published

Languages