How do I install and use Scrooge

1k Views Asked by At

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?

1

There are 1 best solutions below

5
On BEST ANSWER

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