Last modified by Aurelie Bertrand on 2026/03/10 09:29

Hide last authors
gamphoux 1.1 1 {{ddtoc/}}
2
3 ----
4
Aurelie Bertrand 8.1 5 (% class="wikigeneratedid" %)
Aurelie Bertrand 14.1 6 The export of certain Flows (graphics), such as D3, Gantt or Open Street Map, requires the use of nodejs.
Aurelie Bertrand 8.1 7
8 (% class="wikigeneratedid" %)
Aurelie Bertrand 14.1 9 To run nodejs, follow the instructions below.
Aurelie Bertrand 8.1 10
Aurelie Bertrand 14.1 11 = Install Chromium =
Aurelie Bertrand 6.1 12
Aurelie Bertrand 14.1 13 The nodejs export requires the Chromium browser to be installed.
Aurelie Bertrand 6.1 14
Aurelie Bertrand 14.1 15 **Installation on Ubuntu 22.04**
Aurelie Bertrand 6.1 16
Aurelie Bertrand 14.1 17 For installation on Ubuntu 22.04, use the following commands:
18
Aurelie Bertrand 6.1 19 {{code}}
20 sudo wget "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x869689FE09306074" -O /etc/apt/trusted.gpg.d/phd-chromium.asc
21 echo "deb [signed-by=/etc/apt/trusted.gpg.d/phd-chromium.asc] https://freeshell.de/phd/chromium/$(lsb_release -sc) /" | sudo tee /etc/apt/sources.list.d/phd-chromium.list
22 sudo apt-get update
23 sudo snap remove chromium
24 sudo apt-get -y purge chromium-browser
25 sudo apt-get -y autoremove
26 sudo apt-get -y install chromium
27 {{/code}}
28
gamphoux 1.1 29
Aurelie Bertrand 14.1 30 **Installation on Ubuntu 24.04**
gamphoux 1.1 31
Aurelie Bertrand 14.1 32 For installation on Ubuntu 24.04 with Tomcat 10, use the following commands:
33
34 {{code}}
35 sudo service tomcat10 stop
36 sudo sh -c 'echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list'
37 wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
38 sudo apt-get update
39 sudo apt-get install google-chrome-stable -y
40 sudo service tomcat10 start
41 {{/code}}
42
43 = Activate the nodejs export server =
44
45 1. Edit the **system.xml **file in the **<digdash.appdata>/Enterprise Server/ddenterpriseapi/config** folder.
46 1. Add the line:
47
cvaiana 4.1 48 {{code language="batch" cssClass="notranslate"}}
gamphoux 2.1 49 <Property key="NODEJS_EXPORT" value="true"></Property>
gamphoux 1.1 50 {{/code}}
51
Aurelie Bertrand 9.1 52 (% start="3" %)
Aurelie Bertrand 14.1 53 1. Restart the tomcat server.
gamphoux 1.1 54
Aurelie Bertrand 14.1 55 = Set up the nodejs server =
gamphoux 1.1 56
Aurelie Bertrand 14.1 57 If the tomcat ip address and port are different from the default values (localhost:8080), edit the **digdash.properties** file **.**
58 Uncomment or add the following line:
gamphoux 1.1 59
cvaiana 4.1 60 {{code language="properties" cssClass="notranslate"}}
mperroud 2.3 61 ddenterpriseapi.SERVERURL=http://localhost:8080
gamphoux 1.1 62 {{/code}}
63
mperroud 3.1 64 (% class="box infomessage" %)
65 (((
Aurelie Bertrand 14.1 66 💡To uncomment a parameter in the digdash.properties file, delete the # character at the beginning of the line.
mperroud 3.1 67 )))
Aurelie Bertrand 10.2 68
Aurelie Bertrand 14.1 69 = Export via NodeJS multi-domain =
Aurelie Bertrand 10.2 70
Aurelie Bertrand 14.1 71 For a multi-domain installation on the same machine, exports using NodeJS are not functional except for the default domain ("defautHost" in tomcat's server.xml).
Aurelie Bertrand 10.2 72
Aurelie Bertrand 14.1 73 For a "classic" installation with 3 domains such as "default, rct, dev", add the following lines to the "digdash.properties" file:
Aurelie Bertrand 10.2 74
Aurelie Bertrand 13.1 75 (% class="box infomessage" %)
76 (((
Aurelie Bertrand 14.1 77 ℹ For the "NODEJSURL" parameter, the ports must be distinct per domain on the same machine (3000 then 3001 and 3002 in the example below). They do not have to be continuous (but they do have to be free, of course).
Aurelie Bertrand 13.1 78 )))
79
Aurelie Bertrand 12.1 80 {{code language="properties"}}
Aurelie Bertrand 11.1 81 ddenterpriseapi.DDAPIFORNODEJSURL=http://localhost:8080
Aurelie Bertrand 10.2 82 ddenterpriseapi_rct.DDAPIFORNODEJSURL=http://localhost-rct:8080
83 ddenterpriseapi_dev.DDAPIFORNODEJSURL=http://localhost-dev:8080
84
85 ddenterpriseapi.NODEJSURL=http://localhost:3000
86 ddenterpriseapi_rct.NODEJSURL=http://localhost-rct:3001
87 ddenterpriseapi_dev.NODEJSURL=http://localhost-dev:3002
Aurelie Bertrand 11.1 88 {{/code}}