Skip to content

Getting Started Guide

bilal edited this page Apr 7, 2012 · 1 revision

Prerequisites

Setup rebar or make rebar executable from source

cd graphsom
chmod u+x rebar  

Get dependencies & compile

mkdir deps
./rebar get-deps
./rebar compile

Create a release

mkdir rel
cd rel
../rebar create-node nodeid=graphsom

At this point, the release folder rel should contain reltool.config (release tool configuration file). We need to tell reltool where to find graphsom and folsom applications. This can be done by specifying lib_dir in reltool.config as follows:

{lib_dirs, ["../../", "../deps/"]},

Since by default applications are not automatically added to the release, we can add folsom in our release by adding the following line in reltool.config:

{app, stdlib, [{incl_cond, include}]},
{app, kernel, [{incl_cond, include}]},
{app, folsom, [{incl_cond, include}]},
**{app, folsom, [{incl_cond, include}]},**
{app, graphsom, [{incl_cond, include}]}

Generating a release (a self-containing deployable directory containing all the applications in your node):

./rebar generate

Running graphsom node:

./rel/graphsom/bin/graphsom console

Alternatively, Makefile is provided for convenience.

Note: Graphsom takes care of starting folsom.

Clone this wiki locally