marmelab/ArchitectureTree

Name: ArchitectureTree

Owner: marmelab

Description: Draw and share your software architecture without diagramming software. Uses d3.js and Angular.js.

Created: 2015-01-05 08:49:35.0

Updated: 2017-12-28 06:14:36.0

Pushed: 2017-01-06 14:54:03.0

Homepage: http://marmelab.com/ArchitectureTree/

Size: 832

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits
Francois Zaninotto2015-06-04 13:41:20.012
Jérôme Macias2015-01-09 10:50:51.05
Daphné Popin2014-04-06 14:43:05.01

Other Committers

UserEmailMost Recent Commit# Commits

README

Marmelab ArchitectureTree

ArchitectureTree is a single page application to visualize and edit architecture schemas in the browser, built with d3.js and AngularJS.

Sample Visualization

Check out the online demo.

Motivation

We generally use a client software to draw our system architecture schema, like Microsoft Visio © for example. But often, only one member of the team has this software installed on their laptop. Besides, the schema often uses a specific file format, and there is no standard way to draw the schema. It quickly becomes very hard to maintain the schema as the software evolves.

ArchitectureTree give you the possibility to visualize and edit an architecture schema in your browser, and to save it as a JSON file.

Installation
Get The Code
clone git@github.com:marmelab/ArchitectureTree.git
rchitectureTree
Create Architecture File

Create a JSON description of your system, and save it as data.json. A good starting point is the provided data.json-dist example file:

ata.json-dist data.json
Start Static Webserver

ArchitectureTree is entirely client-side. However, as it uses AJAX to load the architecture file, you'll need a static web server to use it from localhost.

For example, by using the PHP one:

-S localhost:4000

Or the Python one:

on -m SimpleHTTPServer 4000

Then, navigate to http://localhost:4000/.

Tip: If you commit the code to the gh-pages branch of a GitHub repository, it'll be available for viewing.

Usage

Filters on name, technos and hosts are avalaible on the left hand side of the screen.

Details about a node reveal on the right hand side of the screen when hovering a node.

You can edit the node by clicking on it: the details box turns into a form. After you save your modifications, the JSON in the bottom textarea is automaticaly updated. Note that you can also edit the JSON directly in the textarea.

Since there is no server-side, you have to manualy report the json modifications into the data.json file, and commit it.

Data description file

The data.json file describes your architecture in a json format. It allows versionning by using git or another SCM. It can be edited by anyone with access to the repository.

After any update to the description file, check that it works locally before committing (any JSON validation error will result in a blank screen). All charts rely on this data file.

Format

Each element of your system is defined by a JSON node entry. Here is an example:


"name": "News",
"children": [
    { "name": "World" },
    { "name": "Sport" }
],
"url": "www.my-media-website.com/*",
"dependsOn": ["Content API", "Xiti", "Search API", "OAS", "Account API", "    Picture API", "Router API"],    
"technos": ["PHP", "Javascript", "Silex", "NGINX", "Varnish"],  
"satisfaction": 0.9,
"host": { "Amazon": ["fo-1", "fo-2"] }

Properties
License

ArchitectureTree is licensed under the MIT Licence, courtesy of marmelab and Arte GEIE.

If you like ArchitectureTree and use it for an open-source project, please send us a screenshot of your ArchitectureTree at @marmelab!

And don't forget to check out our other visualizations:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.