Git Product home page Git Product logo

zhack-sample-ddd-spu's Introduction

商品管理领域DDD示例

设计思路

设计思路

项目结构

  • gate: 对外暴露的服务
    • rest:对外暴露的rest服务
    • dubbo:对外暴露的dubbo服务
    • mq: 消息处理器
  • application:应用服务层
  • domain:领域层
    • shop: 店铺
    • category: 分类
    • unit: 单位
    • spec: 规格
    • spu: 商品库
    • sales: 上架销售
  • infra:基础设施层
    • mq: 发消息实现
    • acl:代理实现
    • repo:仓储实现

如何使用

  1. 下载依赖并进行本地部署
git clone https://github.com/fancyyawn/zhacker-framework.git
mvn clean install -Dmaven.test.skip
  1. 下载本项目并在本地启动应用
git clone https://github.com/fancyyawn/zhack-sample-ddd-spu.git
mvn spring-boot:run
  1. 通过swagger界面操作接口 swagger-ui

ddd-spu-api

  1. 通过h2-console查看数据 h2-console
  • 地址:jdbc:h2:/tmp/testdb
  • 用户名:sa
  • 密码:为空

h2-console-login

h2-console

zhack-sample-ddd-spu's People

Contributors

fancyyawn avatar

Watchers

James Cloos 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.