Coder Social home page Coder Social logo

eyupgevenim / dot-net-core-3.0-blog-api Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 2.0 703 KB

.Net Core 3.0 Web Api design versioning, Jwt, Swagger, xUnit, Serilog, EF Core, DI, Repository, Docker

C# 96.81% PowerShell 0.08% Dockerfile 3.11%
aspnetcore donetcore dotnet dotnetcore3 versioning apiversion jwt jwt-token swagger xunit

dot-net-core-3.0-blog-api's Introduction

.Net Core 3.0 Web API Design

.Net Core 3.0 Web Api design versioning, Jwt bearer authentication, swagger documentation, serilog logger, EF Core Repository pattern, Db Migration, xUnit Tests, dependency injection and project layers

Project layers

solution

solution

Web Api versioning

v1.0
versioning

v1.1
versioning

Jwt bearer authentication

Jwt token

Swagger documentation

Swagger documentation

Migration

edit var connectionString =""; in DbContextFactory.cs and go .....\Blog\src\Libraries\Blog.Data path open on CLI and run commands

#restore Blog.Data project
...Blog.Data_> dotnet restore

#build Blog.Data project
...Blog.Data_> dotnet build

#add Initial name migrations 
...Blog.Data_> dotnet ef migrations add Initial

#Update migrations on database
...Blog.Data_> dotnet ef database update
#dotnet ef database update Initial

EF Core Repository

mapping
mapping

DbContext
db-context

Generic repository
repository

Dependency injection
DI

xUnit Tests

Service test
xUnit service Tests

Integration test
xUnit integration Tests

Passed Tests
xUnit integration Tests

Serilog Logger

serilog

dot-net-core-3.0-blog-api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

svdemir fatiheker

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.