Coder Social home page Coder Social logo

juanmarquezruiz / cleanarchitecturenet6verricard01 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ricard01/knowledge

0.0 0.0 0.0 318 KB

original there (https://github.com/Ricard01/Knowledge) This is a repository for creating a Knowledge Base following the principles of Clean Architecture

License: MIT License

JavaScript 1.22% C# 46.04% TypeScript 40.82% HTML 9.09% SCSS 2.84%

cleanarchitecturenet6verricard01's Introduction

Knowledge Base

This is a solution for create a Knowledge Base a Single Page App (SPA) with Angular and ASP.NET Core following the principles of Clean Architecture.

Articles Articles-preview

Tags Tags-preview

Technologies

  • ASP .NET Core 6.0
  • Entity Framework Core 5.0
  • Angular 13
  • MediatR
  • AutoMapper
  • FluentValidation
  • NUnit, FluentAssertions, Moq & Respawn
  • Mysql

Database Configuration

The template is configured to use an MySql database by default. Verify that the DefaultConnection connection string within appsettings.json points to a valid MySQL Server instance.

If you would like to use SQL Server, you will need to update WebUI/appsettings.json as follows:

  "UseMysql": false,

When you run the application the database will be automatically created (if necessary) and the latest migrations will be applied.

Started

  • Inside WebUI Folder.
    • dotnet run

Migrations

  • Install in the root of the repository (if it is not installed)
    • dotnet new tool-manifest
    • dotnet tool install dotnet-ef
  • dotnet ef migrations add Initial -p Infrastructure/ -s WebUI/ -o Persistence/Migrations (for more info add -v)
  • dotnet ef migrations remove -p Infrastructure/ -s WebUI/

Notes

  • Default Email: admin@localhost Password: nolose.
  • If u need to create the InitialMigration for SQL Server first make sure to comment WebUI.csproj>Nswag Command.
  • In ArticleController u can find comments to help understan the request flow.
  • I Didn't use nullable on the projects because i found confusing on Commands Dto and entitys. Is hard to read without an explanation.
  • Install Todo Tree https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.todo-tree and Add the tags NOTE and QN (Questions)to find 'special' comments.

cleanarchitecturenet6verricard01's People

Contributors

ricard01 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.