Menu

Tree [f1e48d] master /
 History

HTTPS access


File Date Author Commit
 css 2018-02-13 Michał Nowacki Michał Nowacki [0cc321] RRO tool update with new features
 fonts 2018-02-13 Michał Nowacki Michał Nowacki [0cc321] RRO tool update with new features
 lib 2018-02-13 Michał Nowacki Michał Nowacki [0cc321] RRO tool update with new features
 samples 2015-06-17 Charles Hill Charles Hill [f74107] Added sample rro files for testing.
 scripts 2015-06-17 Charles Hill Charles Hill [0edc2a] Added svg font icons.
 src 2018-02-13 Michał Nowacki Michał Nowacki [0cc321] RRO tool update with new features
 .codacy.yml 2018-02-13 Michał Nowacki Michał Nowacki [0cc321] RRO tool update with new features
 .gitignore 2018-02-13 Michał Nowacki Michał Nowacki [0cc321] RRO tool update with new features
 .gitlab-ci.yml 2018-02-13 Michał Nowacki Michał Nowacki [0cc321] RRO tool update with new features
 .jscs.json 2018-02-13 Michał Nowacki Michał Nowacki [0cc321] RRO tool update with new features
 aws.sh 2018-02-13 Michał Nowacki Michał Nowacki [0cc321] RRO tool update with new features
 gruntFile.js 2018-02-13 Michał Nowacki Michał Nowacki [0cc321] RRO tool update with new features
 index.html 2018-02-13 Michał Nowacki Michał Nowacki [0cc321] RRO tool update with new features
 package-lock.json 2018-02-13 Michał Nowacki Michał Nowacki [0cc321] RRO tool update with new features
 package.json 2018-02-20 Michał Nowacki Michał Nowacki [babc53] update Readme.md file and package.json with pro...
 readme.md 2018-02-20 Michał Nowacki Michał Nowacki [f1e48d] fix type in readme.md, build instead of dist

Read Me

Risk Reduction Overview Editor

This document contains information necessary for developers to understand the key aspects of the RRO application.

JointJS

At the core of the RRO application is the JointJS diagramming library. It is used to render the shapes (Risks, Measures) and links between them.

RRO File Format

The .rro file format is JSON converted to text. The structure is as follows:

{
    "name": "Name of the diagram",
    "graph": { /* graph data */ }
}

Detailed information about the structure of the graph data can be found here.

Installing

Dependencies:

To install project you need node with npm. When you have them installed just type in terminal (or use any tool that is suitable for it)

npm install

Development

For development purposes just run:

npm start

It will start watcher on all project files, rebuild instantly after any changes, refresh page. Serves on localhost:9001.
Remember that changes shouldn't be made in /dist catalogue as it's generated automatically from all files.

Building

There are two tasks for building project:

npm run dist-dev
npm run dist-prod

Dev version builds with map to app.js and styles.css. After building /dist catalogue will be created, and it will contain version ready to deploy.

JavaScript Code Styling

To run the code styling checks, use the following command from within the project directory:

npm run jscs