Skip to content

Architecture cross-platform with .NET Core 2.1, ASP.NET Core 2.1, Entity Framework Core 2.1, C#, Angular 7, DDD, SOLID, Code Analysis, Docker and others best practices and technologies.

License

Notifications You must be signed in to change notification settings

boriphuth/DotNetArchitecture

 
 

Repository files navigation

DotNetArchitecture

Solution to apply and share new knowledge and technologies and to serve as architecture for new projects.

Tools, Practices and Technologies

  • Cross-Platform (Windows, Linux, macOS)
  • Docker
  • Visual Studio 2017
  • Visual Studio Code
  • .NET Core 2.1.5
  • ASP.NET Core 2.1.5
  • Entity Framework Core 2.1.4
  • SQL Server 2017
  • MongoDB
  • C# 7.3
  • SPA (Single Page Application)
  • Angular 7.0.3
  • Typescript 3.1.6
  • HTML5
  • CSS3
  • SASS (Syntactically Awesome Style Sheets)
  • UIkit
  • DDD (Domain-Driven Design)
  • SOLID Principles
  • Dependency Injection
  • Mapping
  • Logging
  • Unit Test
  • JWT (Json Web Token)
  • Response Caching
  • Response Compression (Brotli)
  • Code Analysis (Ruleset, TSLint and Codacy)
  • Swagger

Code Analysis

Codacy

Layers

Screenshot

Web: This layer contains the api (ASP.NET Core) and the frontend (Angular).

Application: This layer is the main entry point of the application.

Domain: This layer contains the requirements and the business logic.

Model: This layer is responsible for modeling the domain objects.

Infrastructure: This layer isolates and abstracts the logic for data persistence.

CrossCutting: This layer provides generic features for the other layers.

Core: This layer provides generic features for other solutions. It is a candidate to NuGet packages.

Tests: It is responsible for testing individual units of the code or business logic.

Projects

Screenshot

Application

Screenshot

Domain

Screenshot

Repository

Screenshot

Unit Test

Screenshot

ASP.NET Core + Angular

Screenshot

ASP.NET Core Startup

Screenshot

ASP.NET Core Controller

Screenshot

Angular Guard

Screenshot

Angular Error Handler

Screenshot

Angular HTTP Interceptor

Screenshot

Angular Service

Screenshot

Angular Component

Screenshot

ASP.NET Core + Angular + Entity Framework Core + SQL Server Performance

Screenshot

Specifications:

Processor: Intel Core I7 8700K Coffee Lake 8th-generation.

Memory: 16GB 2400Mhz DDR4.

Storage: Samsung Evo 960 SSD M2 250gb.

OS: Windows 10 Pro 64 bits.

Web Server: Kestrel.

Database: SQL Server 2017 Developer Edition.

Swagger

Screenshot

Run Command Line

  1. Install latest .NET Core SDK.

  2. Open directory source\Web\App\Frontend in command line and execute npm run restore.

  3. Open directory source\Web\App in command line and execute dotnet run.

  4. Open https://localhost:8090.

Run Visual Studio Code

  1. Install latest .NET Core SDK.

  2. Install C# Extension.

  3. Open directory source\Web\App\Frontend in command line and execute npm run restore.

  4. Open source directory in Visual Studio Code.

  5. Press F5.

Run Visual Studio 2017

  1. Install latest .NET Core SDK.

  2. Open directory source\Web\App\Frontend in command line and execute npm run restore.

  3. Open source\Solution.sln in Visual Studio.

  4. Set Solution.Web.App as startup project.

  5. Press F5.

Run Docker

  1. Install and configure Docker.

  2. Execute docker-compose up --build -d --force-recreate in root directory.

  3. Open http://localhost:8095.

Host and Deploy

Microsoft host and deploy ASP.NET Core

Visual Studio Extensions

CodeMaid

Roslynator

SonarLint

TSLint

About

Architecture cross-platform with .NET Core 2.1, ASP.NET Core 2.1, Entity Framework Core 2.1, C#, Angular 7, DDD, SOLID, Code Analysis, Docker and others best practices and technologies.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 72.7%
  • TypeScript 19.1%
  • HTML 6.8%
  • CSS 1.4%