Need help with dotnetcore-entityframework-api?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

chsakell
214 Stars 101 Forks MIT License 33 Commits 3 Opened issues

Description

Building REST APIs using ASP.NET Core and Entity Framework Core

Services available

!
?

Need anything else?

Contributors list

# 50,192
Angular
CSS
C#
webapi-...
33 commits

Building REST APIs using ASP.NET Core and Entity Framework Core

License Build status

Blog post
Frameworks - Packages - Patterns - Features used

  • ASP.NET Core
  • Entity Framework Core
  • Entity Framework Migrations - Code First
  • Repository pattern
  • FluentValidation
  • Automapper
  • Global exception handler
  • Cors
dotnet-core-api-14

Installation Instructions (1)

Installation Instructions (2) - Visual Studio

  1. Open the solution in VS 2017
  2. Open Package Manager Console and navigate to Scheduler.API by typing cd path_to_Scheduler.API
  3. Modify the connection string in appsettings.json to reflect your database environment
  4. run the following commands
    1. Add-Migration Initial
    2. Update-Database

  5. Build and run the Scheduler.API project

Installation Instructions (2) - Without Visual Studio

  1. Clone or download the repository
  2. Open a terminal/cmd
  3. Open Scheduler.API folder in your favorite text editor (preferably VS Code). If you get a message Required assets to build and debug are missing from your project. Add them?, click Yes
  4. Navigate to Scheduler.Model and run dotnet restore
  5. Navigate to Scheduler.Data and run dotnet restore
  6. Navigate to Scheduler.API and run dotnet restore
  7. If you haven't SQL Server (Linux or MAC) set "InMemoryProvider": true in the appsettings.json file and skip to the last step
  8. Modify the connection string in appsettings.json to reflect your database environment
  9. While at Scheduler.API run the following commands
    1. Add-Migration Initial
    2. Update-Database

  10. While at Scheduler.API run dotnet run

This project is used as the backend API in this Angular 2 - TypeScript SPA

Microsoft Azure Deployment

Learn how to deploy an ASP.NET Core app on Microsoft Azure here.

Follow chsakell's Blog

Facebook Twitter
Microsoft Web Application Development
facebook twitter-small

License

Code released under the MIT license.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.