Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Source of using thrift in Java and node.js. TServer (Java), TClient(Java and node.js).
branch: master

new modules

latest commit f62a15064b
Igor Skrynkovskyy h2rd authored

README.md

using-thrift

Source of using thrift in Java and node.js. TServer (Java), TClient(Java and node.js). Java server can be launched from console or(and) under application continer(like Tomcat).

  1. Build:

    $ mvn clean install
    $ cd thrift-client
    $ ./generateNodePackage.sh
    $ npm install
    $ sudo npm link
    
  2. Start java server:

    $ cd java-server/
    $ mvn jetty:run
    
  3. Start java client:

    $ cd java-client
    $ java -Dfile.encoding=UTF-8 -jar target/java-client-1.0-SNAPSHOT.one-jar.jar
    
  4. Run node.js client

    $ cd node-client
    $ npm install
    $ npm link using-thrift
    $ node node.js
    
Something went wrong with that request. Please try again.