Skip to content

Developer Setup

John Sullivan edited this page Feb 8, 2017 · 4 revisions

Prerequisites

In order to build longevity, you will need relatively modern installations the following three prerequisites:

On a Mac with Homebrew, this is super easy:

% brew install sbt
% brew install cassandra
% brew install mongodb

If you have a formula for acquiring the prerequisites on other platforms, please toss them up here!

Build

Longevity has a pretty standard SBT multi-project build. These are the projects:

  • root
  • longevity
  • emblem
  • longevity-cassandra-deps
  • longevity-mongodb-deps
  • longevity-sqlite-deps

The main project is root, and it aggregates the rest, so you can perform the entire build locally with sbt publishLocal. Or if you just want to run all the tests, use sbt test. Etc.