Code Monkey home page Code Monkey logo

surging.sample's Introduction

Surging Sample

Build Status hits issues size LICENSE

开发与运行环境

IDE

  • Visual Studio 2017/Visual Studio 2019
  • Visual Studio Code

Docker 和 Docker-Compose

  1. 通过docker官网下载并安装docker for windows,安装完
  2. 将docker的容器类型设置为linux(电脑右下角鼠标右键点击Switch to Linux Containers)
  3. 将当前源代码目录所在卷设置为docker的共享卷
  4. 将docker的镜像仓库设置为https://registry.docker-cn.com
  5. 安装docker-compose

运行项目

1. 打包Surging组件

获取源代码后,进入到nupkg目录,通过pack.ps1的脚本打包Surging组件

cd ./nupkg
./pack.ps1

2. 运行中间件

进入到中间件编排目录,通过docker-compose运行中间件组件

cd ./docker-compose/middleware
docker-compose up -d

3. 执行数据库脚本

使用mysql数据库管理工具nacicat(或是其他数据链接工具),链接到数据库服务,并执行sql目录下的数据库脚本,数据库链接的配置如下:

hostname: 127.0.0.1
port: 23306
username: root
password: qwe!P4ss

4. 运行项目

通过visual Studio打开sln/Surging.Hl.sln解决方案,将docker-compose项目设置为启动项目,按F5启动项目。

微服务组件

微服务名称 说明 端口号 维护人 新增日期 备注
Customer 客户关系管理服务组件 18080 * *
Identity 身份认证与授权服务组件 18081 * * 用于微服务集群身份认证与授权的服务组件
Order 订单管理服务组件 18082 * *
Product 产品管理服务组件 18083 * *
Schedule 分布式任务调度管理组件 18084 * *
Stock 库存管理服务组件 18085 * *
Organization 组织机构服务组件 18086 * *
BasicData 基础数据微服务组件 18087 * *

surging.sample's People

Contributors

liuhll avatar yangtianb 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.