Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I install and use Scrooge

I want to write a Thrift service using Scrooge.

Thrift has almost no documentation and Scrooge has even less.

How do I install Scrooge on an Ubuntu or OSX machine?

Once installed, and I have created a .thrift, how do I use Scrooge to generate server code and client code?

like image 487
Eric Hartford Avatar asked Jun 26 '13 23:06

Eric Hartford


1 Answers

I created a giter8 template for you.

  1. Install conscript

    curl https://raw.github.com/n8han/conscript/master/setup.sh | sh

  2. Install giter8

    cs n8han/giter8

  3. Get my template

    g8 MasseGuillaume/scrooge

  4. Install sbt (I Like sbt-extra) + add sbt to your $PATH

    curl https://raw.github.com/paulp/sbt-extras/master/sbt > ~/bin/sbt

  5. apply default parameters

  6. Start a server on a terminal tab

    sbt server/run

  7. Start a client on another terminal tab when the server has started

    sbt client/run

like image 64
Guillaume Massé Avatar answered Sep 16 '22 20:09

Guillaume Massé