GithubHelp home page GithubHelp logo

padamshrestha / dotnetcore-entityframework-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chsakell/dotnetcore-entityframework-api

0.0 3.0 0.0 74 KB

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

Home Page: http://wp.me/p3mRWu-18G

License: MIT License

C# 87.29% HTML 12.71%

dotnetcore-entityframework-api's Introduction

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

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 2015
  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. dotnet ef migrations add "initial"
    2. dotnet ef database update
  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. dotnet ef migrations add "initial"
    2. dotnet ef database update
  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.

Donations

For being part of open source projects and documenting my work here and on chsakell's blog I really do not charge anything. I try to avoid any type of ads also.

If you think that any information you obtained here is worth of some money and are willing to pay for it, feel free to send any amount through paypal.

Paypal
Buy me a beer

Follow chsakell's Blog

Facebook Twitter
Microsoft Web Application Development
facebook twitter-small

License

Code released under the MIT license.

dotnetcore-entityframework-api's People

Contributors

chsakell avatar

Watchers

James Cloos avatar Padam Shrestha avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.