Giter Site home page Giter Site logo

it810 / ecommerceddd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from falberthen/ecommerceddd

0.0 0.0 0.0 4.96 MB

Experimental full-stack application using Domain-Driven Design, CQRS, and Event Sourcing.

Home Page: https://falberthen.github.io/posts/ecommerceddd-pt1

License: MIT License

JavaScript 0.25% C# 79.74% TypeScript 12.36% CSS 1.90% HTML 3.57% Dockerfile 1.44% SCSS 0.75%

ecommerceddd's Introduction

Build License

Welcome to Ecommerce DDD

This project is an experimental full-stack application I use to combine several cutting-edge technologies and architectural patterns.
Thanks for getting here! please give a โญ if you liked the project. It motivates me to keep improving it.



Architecture

The overall architecture is organized with Core, Crosscutting and Services.


Core

It defines all the building blocks and abstractions to be used on every underlying project.

Core.Infrastructure

It implements infrastructure matters to be used by microservices. Also, it centralizes third-party packages.


Crosscutting

It contains projects with logic needed to cross over the microservices, such as IdentityServer4 and API gateway.


Services

The microservices composing the back-end, are built to be as compact as possible, meaning they're structured to have not only the business logic related to the domain but also to expose it through a self-contained API.

It is structured with: Domain, Application, API, Infrastructure (when apply).

- Domain

This is where the business logic resides, with a structured implementation of the domain through aggregates, commands, value objects, domain services, repository definitions, and domain events.

- Application

It orchestrates the interactions between the external world and the domain to perform application tasks through use cases by handling commands and queries.

- Infrastructure

It acts as a supporting library for higher layers. It handles infrastructural matters and data persistence.


Presentation

A lightweight Angular-based SPA providing a functional and user-friendly UI.


Technologies used

  • ASP.NET and C# 10 for cross-platform back-end with:
    • .NET 7
    • ASP.NET Core Minimal API
    • Ocelot 18.0.0
    • Marten 6.0.0-alpha.11
    • Entity Framework Core 7.0.4
    • Postgres for Entity Framework Core 7.0.3
    • ASP.NET Core Identity 7.0.4
    • ASP.NET Core Authentication JwtBearer 7.0.4
    • Duende IdentityServer 6.2.3
    • SignalR Core
    • MediatR 12
    • Fluent Assertions 6.10.0
    • XUnit 2.4.2
    • Moq 4.18.4
    • Swagger 6.5.0
    • Confluent Kafka 2.02
    • Docker Compose
  • Angular 13 and TypeScript for the front-end with:
    • NgBootstrap
    • Font Awesome
    • Toastr
    • Angular JWT

What do you need to run

Running the back-end

The project was designed to be easily run within docker containers, hence all you need is 1 command line to up everything. Make sure you have installed Docker and have fun!

Using a terminal, run:

 $ docker-compose up

You can also set the docker-compose.dcproj as a Startup project on Visual Studio if you want to run it while debugging.

Running the Angular SPA

Using a terminal, navigate to EcommerceDDD.Spa and run for the following commands the node packages and serving the SPA on http://localhost:4200 respectively:

 $ npm install #first time only
 $ ng serve

ecommerceddd's People

Contributors

falberthen avatar stemadocafe 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.