Giter VIP home page Giter VIP logo

Comments (6)

AlphaYu avatar AlphaYu commented on September 17, 2024

ClientApp 是前端代码
Vue写的,需要安装npm依赖包,步骤如下。
-Install dependencies
npm install --registry=https://registry.npm.taobao.org
-启动
npm run dev

ServerApi(.net core 3.1) 是后端项目你要安装redis,mysql,mongodb,skywalking(这个可选),修改appsettings.development.json与nlog.config。数据库脚本在doc目录里面。

webapi是启动项目。Adnc.Gateway ,Adnc.Maintaining调试调试环境可以不跑,这两个项目是独立的。

from adnc.

shanyipeng avatar shanyipeng commented on September 17, 2024

consul 在项目中如何使用的

from adnc.

AlphaYu avatar AlphaYu commented on September 17, 2024

首先你需要自己部署consul集群。
consul 两大功能
(一)配置中心,
1\配置webpai项目 appsettings.development.json 文件的 Consul节点,里面有详细注释。
2\ 在webpai项目 Program.cs 文件中读取配置中心配置
//从consul配置中心读取配置
var consulOption = configuration.GetSection("Consul").Get();
cb.AddConsul(new[] { consulOption.ConsulUrl }, consulOption.ConsulKeyPath);
(二)服务注册/发现
1、配置webpai项目 appsettings.development.json 文件的 Consul节点,里面有详细注释。
2、webapi项目的startup.cs Configure方法中的最后一行,表示注册服务到cosnul
app.RegisterToConsul(Configuration.GetSection("Consul").Get());
3\发现
var address = await ServiceConsumer.GetServicesAsync("consul地址", "服务名称");

from adnc.

shanyipeng avatar shanyipeng commented on September 17, 2024

image

from adnc.

shanyipeng avatar shanyipeng commented on September 17, 2024

能否留下QQ 一起沟通一下

from adnc.

AlphaYu avatar AlphaYu commented on September 17, 2024

你项目的启动地址是http://localhost:5000,你把启动地址设置成http://你的ip:5000。就可以了。
你加下QQ群:780634162

from adnc.

Related Issues (20)

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.