Giter Site home page Giter Site logo

aspnet-core-web-api-demo's Introduction

ASP.Net Core Web API Demo

This is simple ASP.Net Core 3.1 Web API Application having some common features that required by allmost Web API app.

Feel free to Fork/PR.

Features


  • ASP.Net Core 3.1
    • Model Validations
    • Dynamic Service Register
    • Localization
  • Authentication
    • Asp.Net Core Identity
    • JWT based Auth
    • Custom User/Roles
  • Entity Framework Core 3.1
    • Code First Approach
    • Unit of Work with Repository
    • Automatic Seeding
  • Third-party
    • Swagger
    • Auto Mapper
    • Logs with NLog
    • Mail send with SendGrid
  • Deploy
    • CI GitHub Actions
    • Deploy on Heroku
    • Use Docker

Commands for SQL Server Migration


  1. Open src folder
    cd src
    
  2. Add Migration
    dotnet ef migrations add <Migration name> -o "Migrations" -p "DemoApp.EntityFramework" -s "DemoApp.API" -c "AppDBContext"
    
  3. Update Database
    dotnet ef migrations update <Migration name> -o "Migrations" -p "DemoApp.EntityFramework" -s "DemoApp.API" -c "AppDBContext"
    
  4. Remove Last Migration
    dotnet ef migrations remove -p "DemoApp.EntityFramework" -s "DemoApp.API" -c "AppDBContext"
    
  5. Generate full Script for all Migrations
    dotnet ef migrations script -i -v -o script.sql -o "Migrations" -p "DemoApp.EntityFramework" -s "DemoApp.API" -c "AppDBContext"
    

Project Dependency


               API
                ↑
             Business
                ↑
            DataAccess
                ↑
            AutoMapper
                ↑
              Models
         🡕              🡔
EntityFramework     Localization

Setup


  1. Download this Repo.
  2. Update AppSettings.json file Under API project.
  3. Create App on Heroku.
  4. Add Secrets in GitHub.
    • HEROKU_API_KEY
    • HEROKU_APP_NAME
  5. Create & Push repo on Github.
  6. Open your Heroku App page.

That's it! 😎

aspnet-core-web-api-demo's People

Contributors

mehtanilay10 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mhsnalm

aspnet-core-web-api-demo's Issues

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.