This is a template project for starting up a simple echo server using finagle and thrift.
-
Download sbt. See https://github.com/harrah/xsbt/wiki/Getting-Started-Setup.
-
Download intellji and install sbt and scala plugins.
-
Run ./sbt to sync down all dependencies.
-
Run ./sbt gen-idea to create idea project file. See: http://stackoverflow.com/questions/4250318/how-to-create-sbt-project-with-intellij-idea.
-
Run ./sbt scrooge-gen to generate finagle client and server wrapper class for the echo thrift service.
-
Open the project in intellij, and configure java sdk so that we can run the app within eclipse. For details, see: http://stackoverflow.com/questions/4773784/module-sdk-for-scala-in-intellij-idea
-
To create a fat package, run ./sbt package-dist.
-
To clean, run ./sbt clean.