Git Product home page Git Product logo

sentinel-apollo-demo's Introduction

sentinel-apollo-demo

使用apollo作业sentine数据源

1、搭建apollo

1.1 快速接入apollo

 参考文档:https://ctripcorp.github.io/apollo/#/zh/deployment/quick-start
 我本地目录在E:\my\apollosource\apollo-quick-start-1.8.0
 执行./demo.sh start
 apollo 控制台:localhost:8070

1.2 源码调试apollo

参考文档:https://ctripcorp.github.io/apollo/#/zh/development/apollo-development-guide
我本地目录在E:\my\apollo-new
apollo application vm配置如下

-Dspring.datasource.url=jdbc:mysql://127.0.0.1:3306/ApolloConfigDB?characterEncoding=utf8
-Dspring.datasource.username=root
-Dspring.datasource.password=

portal vm配置
-Dapollo_profile=github,auth
-Ddev_meta=http://localhost:8080/
-Dserver.port=8070
-Dspring.datasource.url=jdbc:mysql://127.0.0.1:3306/ApolloPortalDB?characterEncoding=utf8
-Dspring.datasource.username=root
-Dspring.datasource.password=

1.3设置2个项目

设置2个项目,名称分别为SampleApp和QiSuqiuApp,对应下方的2个demo

1.4 设置token(在sentinel配置中需要用到)

配置在: 管理员工具->开放平台授权管理
一个token可以配多组appid

RUNOOB 图标

2、搭建sentinel

代码地址:https://github.com/gaoqiuling/sentinel-dashboard

3、启动该项目2个demo

sentinel-apollo-demo's People

Contributors

gaoqiuling avatar

Watchers

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