GithubHelp home page GithubHelp logo

php-sidecar-demo's Introduction

食用手册

  1. 运行eureka-server模块的EurekaServerApplication
  2. 运行java-api模块的JavaApiApplication
  3. 命令行进入php-api目录,执行composer install安装依赖,后执行php artisan serve --host 0.0.0.0运行服务
  4. 运行sidecar模块的SidecarApplication
  5. 访问http://127.0.0.1:8080/api/call_php,JAVA服务成功通过feign访问php接口
  6. 访问http://127.0.0.1:8000/api/call_java,PHP服务成功通过sidecar访问java的接口
  7. 运行zuul-gateway模块的ZuulGatewayApplication,直接访问网关默认策略http://127.0.0.1:8888/{应用名}/{接口地址},请求到到任一应用接口。例如[http://127.0.0.1:8000/php-api/api/test](http://127.0.0.1:8000/php-api/api/test)

服务清单

应用名称 端口 语言
eureka 8761 java
java-api 8080 java
php-api 8000 php
sidecar 7999 java
zuul-gateway 8888 java

简单介绍下调用流程

TODO

php-sidecar-demo's People

Contributors

huwei avatar xxweimei 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.