# remove 4.x nodejs if installed
$ sudo apt remove nodejs
$ curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
$ sudo bash nodesource_setup.sh
$ sudo apt-get install nodejs build-essential
# clone repository
$ git clone https://github.com/CiscoKorea/tetration-app-diagram
$ cd tetration-app-diagram
$ npm install
#remove 4.x nodejs if installed
$ yum erase nodejs or yum erase node
$ curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash -
$ sudo yum -y install nodejs
$ sudo yum -y install gcc-c++ make (if development environment required)
# clone repository
$ git clone https://github.com/CiscoKorea/tetration-app-diagram
$ cd tetration-app-diagram
$ npm install
update routes/credentials.js with your tetration cluster and api_key, api_secret update api_cred.json with your tetration cluster's api_key and api_secret update app_dump.py with your tetration cluster's end_point information
$ python app_dump.py
$ cd public/data
check all.json & {app_id}.json files & folders
$ cd tetration-app-diagram
$ npm start
Open your brower and connect server( or localhost) with 3003 port
$ export PORT={port_number}
$ npm start
or
$ vi bin/www and update line 15
var port = normalizePort(process.env.PORT || '3003');
After selection application the you can see Application topology diagram with D3 javascript library