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

Show last authors
1 {{ddtoc/}}
2
3 ----
4
5 (% class="wikigeneratedid" %)
6 The export of certain Flows (graphics), such as D3, Gantt or Open Street Map, requires the use of nodejs.
7
8 (% class="wikigeneratedid" %)
9 To run nodejs, follow the instructions below.
10
11 = Install Chromium =
12
13 The nodejs export requires the Chromium browser to be installed.
14
15 **Installation on Ubuntu 22.04**
16
17 For installation on Ubuntu 22.04, use the following commands:
18
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
29
30 **Installation on Ubuntu 24.04**
31
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
48 {{code language="batch" cssClass="notranslate"}}
49 <Property key="NODEJS_EXPORT" value="true"></Property>
50 {{/code}}
51
52 (% start="3" %)
53 1. Restart the tomcat server.
54
55 = Set up the nodejs server =
56
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:
59
60 {{code language="properties" cssClass="notranslate"}}
61 ddenterpriseapi.SERVERURL=http://localhost:8080
62 {{/code}}
63
64 (% class="box infomessage" %)
65 (((
66 💡To uncomment a parameter in the digdash.properties file, delete the # character at the beginning of the line.
67 )))
68
69 = Export via NodeJS multi-domain =
70
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).
72
73 For a "classic" installation with 3 domains such as "default, rct, dev", add the following lines to the "digdash.properties" file:
74
75 (% class="box infomessage" %)
76 (((
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).
78 )))
79
80 {{code language="properties"}}
81 ddenterpriseapi.DDAPIFORNODEJSURL=http://localhost:8080
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
88 {{/code}}