Comments (6)
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.
consul 在项目中如何使用的
from adnc.
首先你需要自己部署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.
from adnc.
能否留下QQ 一起沟通一下
from adnc.
你项目的启动地址是http://localhost:5000,你把启动地址设置成http://你的ip:5000。就可以了。
你加下QQ群:780634162
from adnc.
Related Issues (20)
- 内网IP错误 HOT 2
- 可否写一个Windows部署的教程? HOT 2
- 按快速跑起来的教程运行起来程序,登录报错
- 为什么没有使用grpc HOT 1
- 为何不集成SQLServer HOT 1
- 连接MySQL的使用过程中,DBContext出现线程不安全 HOT 5
- 哪位有空能否帮助把这三个sql文件里涉及的表名,列名转换成小写。 HOT 1
- 寻求有缘人帮忙做一个简洁、漂亮的登录页面,目前这个太low了。 HOT 14
- FluentValidation 验证Dto后,错误提示不显示 WithMessage中自定义的信息 HOT 1
- 有无兴趣对接阿里开源的Sentinel组件? HOT 2
- DefaultBinarySerializer HOT 2
- 方便问一下项目模板什么时候能上线吗? HOT 1
- 按照readme启动,无法登录,更改webapi端口为5002后正常 HOT 4
- 按照官方文档启动后,gateway。启动后会链接到 10.0.8.15:8500,我还需要部署什么吗? HOT 1
- 快速入门文档中下载sql脚本错误的URL未更新 HOT 1
- call InitAsync methos before (Parameter 'adnc:user:bloomfilter:accouts')
- mac 系统的 visual studio 2022 打开工程的时候报错,怎么解决 HOT 1
- 注册中心和四个微服务启动后突然终止, 报这个异常,这是什么原因造成的 HOT 4
- 演示地址挂了,访问不到 HOT 1
- nlog-mongodb.config配置无效 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adnc.