Giter Club home page Giter Club logo

rickykiet83 / mscoreone Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trungcaot/mscoreone

0.0 0.0 0.0 1.03 MB

MsCoreOne is a simple Ecommerce with using many technologies such as Asp.Net Core 3.1, Entity Framework Core, React 16.13 with modern Clean Architecture, Domain-Driven Design, CQRS, SOLID, Identity Server 4, Blazor. It will focus on resolving the problems always see in the process to develop projects.

License: MIT License

Dockerfile 0.10% HTML 7.73% TypeScript 20.65% C# 65.88% TSQL 4.90% CSS 0.44% JavaScript 0.15% Shell 0.15%

mscoreone's Introduction

MsCoreOne - Simple Ecommerce

This is a simple ecommerce to practice technologies.

Build Status

Build server Platform Status
Travis Linux / MacOS Build Status
Azure DevOps Linux Build Status

alt text

The technologies have implemented as image above.

Technologies Yes/No
ASP .NET Core Yes
ASP .NET Core Mvc Yes
Entity Framework Core Yes
Identity Server 4 Yes
Swagger UI Yes
React + Typescript Yes
Sql Server Yes
PostgresQL No
Vue js/Blazor/Angular No

Onion Architecture

alt text

Layers Example

alt text

Account default

Docker build

Prerequisite

  • Installed Docker on your computer

Steps to run

  • At deployment folder
  $ docker-compose -f docker-compose-infra.yml up
  $ docker-compose build
  $ docker-compose up

Notes

  • Updating MSCOREONE_DB_HOST's value is ([your IP], 1433) in .env file. Ex. 192.168.131.97,1433
  • Adding ([your IP] mscoreone-portal.local) in hosts file. Ex. 192.168.131.97 mscoreone-portal.local

Links store demo on docker

Running integration test and watching code coverage

You need to some require external nuget packages. Install Converlet and FluentAssertions for your project using the following cli commands.

To get converlet to collect code coverage for your codebase, we need just to run the following command at the repository root.

dotnet test MsCoreOne.IntegrationTests.csproj  /p:CollectCoverage=true /p:CoverletOutputFormat=\"opencover\" /p:CoverletOutput=BuildReports\Coverage\ /p:ExcludeByFile=\"**/Persistence/ApplicationDbContextSeed.cs\" /p:Exclude=\"[*]MsCoreOne.Infrastructure.Migrations.*,[*]MsCoreOne.Pages.*,[*]MsCoreOne.Areas.*\"

Distributed Caching with Redis

To testing with redis cache, you can install redis by the following way:

  1. Install manually redis from github repo and that download zip file that is compatible with your windows, extract the zip folder, and open up redis-server.exe
  2. Using docker to up redis by access to development folder then open powershell and that run command bellow.
docker-compose -f .\docker-compose-infra.yml up redis

Note: You should update your IP in appsetting for redis configuration to make sure mscoreone-api connect to redis server successfully.

mscoreone's People

Contributors

narutox5 avatar trungcaot 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.