Giter Club home page Giter Club logo

generatesvg's Introduction

nodeService for gRPC

you can also use HTTP interface , just see http version

install

2 software required , you can easily install it on macOS (you need install homebrew first)

imagemagick (macOS brew install imagemagick)

potrace (macOS brew install potrace)

cd /this/project/path
npm install svgexport -g
npm install

//run server
node server/nodeservice_server.js

//run client
node client/font2SvgPath.js
node client/png2svg.js
node client/svg2Images.js

demo

使用golang进行远程调用此服务 首先生成nodeservice.pb.go文件

protoc --go_out=plugins=grpc:. nodeservice.proto 
//然后将生成的文件放到 $GOPATH/src/github.com/zmisgod/test 文件夹中(没有请新建))

node server/nodeservice_server.js
go run main.go

contact

@zmisgod

zmis.me新博客

generatesvg's People

Contributors

zmisgod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.