Skip to content
DavidSouther edited this page Dec 11, 2012 · 24 revisions

Following these instructions will get you an environment to build JEFRi and its various modules.

Prereqs:

Install these, and have them available globally.

  • Up-to-date-ish Node (>= 0.8) nodejs.org
  • Up-to-date grunt (>=0.3.15, soon 0.4) (sudo npm install -g grunt)
  • Up-to-date phantomjs (>= 0.2) (sudo npm install -g phantomjs)

Fork and clone JEFRi

Check out a topic branch for the bug or feature.

Runtime:

cd js/core
  1. Install dependencies with npm install
  2. run grunt, ensuring tests pass.

You now have a building Runtime!

Modeler:

cd ../../modeler/angular
  1. Install dependencies with npm install
  2. Add local jefri dependency with npm link ../../js/core
  3. run grunt, ensuring tests pass.
npm start

http://localhost:3000/ and voila, the modeler :)

Server:

cd ../../js/filestore
npm install
npm link ../core
grunt
cd ../../server/node
npm install
npm link ../../js/core
npm link ../../js/filestore

Code:

Now, you'll probably want to get familiar with the code base.

Clone this wiki locally