Giter Site home page Giter Site logo

ligzy / rpcx-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rpcx-ecosystem/rpcx-demo

0.0 2.0 0.0 1.13 MB

一个rpcx的演示程序 - 电子商城

License: MIT License

Go 1.52% JavaScript 26.19% Vue 66.90% HTML 1.30% CSS 2.64% Batchfile 1.45%

rpcx-demo's Introduction

rpcx演示程序

1. 首先生成前端

前端程序克隆自sample-vue-shop, 只是把其中的商品图片由静态改为从动态服务提供。

$ npm install 

$ npm run generate

2. 启动图片rpcx服务

cd ./service
go run service.go

3. 启动后台web服务

web服务会启动一个http server, 提供静态的前端页面以及动态的商品图片。

它收到商品图片的请求后,会调用rpcx服务获取图片的数据,然后再返回前端。

cd ./backend
go run backend.go

4. 访问网址

查看demo http://localhost:8080

rpcx-demo's People

Contributors

smallnest avatar

Watchers

 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.