Mercurial > lada > lada-client
annotate INSTALL.markdown @ 947:ee8837ad99f8
Edited install instructions
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 28 Oct 2015 14:52:40 +0100 |
parents | f2001df0e494 |
children | c021d9a378d6 |
rev | line source |
---|---|
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
1 # Installation Lada-Client |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
2 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
3 Für allgemeine Informationen schauen Sie in die README Datei. |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
4 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
5 ## Installation |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
6 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
7 Für den Betrieb des Lada-Clients muss dieser innerhalb einer Webserver-Umgebung |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
8 installiert werden. Die folgenden Hinweise geben eine Kurze Anleitung zur |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
9 Installation eines Apache-Webserver. |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
10 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
11 Hinweis: Für den Betrieb einer vollständigen Installation ist neben dem |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
12 Klienten auch die Installation eines Servers und entsprechender Datenbank |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
13 notwendig. Für die Installation des Servers folgen Sie bitte den Hinweisen in |
897
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
14 der README Datei des Server-Pakets. |
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
15 Weitere Information finden Sie auf der Projektwebseite: |
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
16 http://wald.intevation.org/projects/lada |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
17 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
18 Die folgenden Hinweise beziehen sich auf die Installation und Einrichtung auf |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
19 Basis eines Oracle-RedHat Linux Systems. |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
20 |
897
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
21 Der Lada-Client ist eine Anwendung die auf dem Framework ExtJs 4.2.1 basiert, |
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
22 Damit der Client funktioniert müssen Sie dieses Framework herunterladen und |
896 | 23 entpacken. Dies kann direkt in das root-Verzeichnis des Lada-Clients geschehen. |
24 | |
25 Für Applikationen die ebenfalls unter der GPL lizenziert wird - so wie der Lada | |
897
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
26 Client - kann ExtJs als [GPL Version heruntergeladen](http://cdn.sencha.com/ext/gpl/ext-4.2.1-gpl.zip) |
896 | 27 werden. |
28 | |
29 Legen Sie nach dem Entpacken einen Symlink auf dieses Verzeichnis an: | |
30 | |
31 ``` | |
32 ln -s ext-4.2.1.883 extjs | |
33 ``` | |
34 | |
886 | 35 ### Kompilieren und Minifizieren der Anwendung |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
36 |
896 | 37 Zum Kompilieren der Anwendung kommt das Tool Sencha Cmd 4.0.x zum Einsatz. |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
38 Mit Hilfe dieses Tools kann der Quellcode in eine einzelne Datei zusammengefasst |
897
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
39 und minifiziert werden. Dies beschleunigt das Laden der Anwendung im Browser |
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
40 erheblich |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
41 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
42 Sencha bietet Sencha Cmd zum [Download](https://www.sencha.com/products/extjs/cmd-download/) |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
43 an. Beachten Sie: Sencha Cmd ist keine freie Software. |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
44 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
45 Die Fa. Sencha beschreibt die Installation von Sencha Cmd in der |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
46 [Dokumentation von ExtJs](http://docs.sencha.com/extjs/4.2.1/#!/guide/command) |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
47 |
886 | 48 Zur Installation von Sencha Cmd werden Ruby und Java benötigt. |
49 | |
50 Bevor Sie die Anwendung kompilieren können, müssen Sie die im Abschnitt | |
51 *Lizenzen und Bibliotheken* genannten Bibliotheken zum Projekt hinzufügen. | |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
52 |
947
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
53 Um die Anwendung zu erzeugen und alle notwendigen Bibliotheken an den richtigen |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
54 Platz zu legen, passen Sie den Pfad zu SenchaCMD in der Datei `build.sh` an und |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
55 führen Sie das Shell-Skript aus. |
896 | 56 |
57 | |
947
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
58 Das Verzeichnis `lada-client-VERSIONSNUMMER` enthält dann eine Datei `index.html` |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
59 und eine Datei `lada.js`. Die Datei `lada.js` ist eine komprimierte Version der |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
60 Anwendung und enthält alle benötigten Klassen. |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
61 |
886 | 62 |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
63 ### Installation Apache |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
64 Zunächst wird der Apache Webserver aus dem Repository installiert: |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
65 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
66 ``` |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
67 yum install httpd mod_ssl |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
68 service httpd start |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
69 ``` |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
70 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
71 ### Aktivierung der Apache Module |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
72 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
73 Die Konfiguration, welche Module beim Start des Apache geladen werden, erfolgt |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
74 in der Datei `/etc/httpd/conf`. Die zu ladende Module sind in dieser Datei mit |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
75 der Option `LoadModule` angegeben. Folgende Module werden benötigt: |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
76 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
77 * headers_module: Setzten der Header nach der Authentifizierung |
897
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
78 * proxy_module: Reverse Proxy des Apache zum Lada-Server |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
79 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
80 ### Einrichtung der Anwendung |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
81 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
82 Zunächst hinterlegen wir die Anwendung in dem Server. Hierzu verwenden wir die |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
83 gebaute Version, welche sich im `build` Ordner befindet. |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
84 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
85 ``` |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
86 cd /var/www/html |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
87 mkdir lada |
947
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
88 cp -r lada-client-VERSIONSNUMMER/* lada |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
89 ``` |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
90 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
91 *Wichtig um SELinux dazu zu überreden das neue Verzeichnis auch zu servieren:* |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
92 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
93 ``` |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
94 restorecon -Rv /var/www/html/ |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
95 ``` |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
96 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
97 Die Anwendung sollte nun bereits unter der Adresse `http://localhost/lada` |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
98 erreichbar sein. |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
99 |
888 | 100 Damit die Anwendung vollständig funktioniert, müssen ggfs. noch weitere |
884
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
101 Bibliotheken hinzugefügt werden. |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
102 Dies wird im Abschnitt *Lizenzen und Bibliotheken* näher beschrieben |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
103 |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
104 ### Konfiguration Proxy Server |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
105 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
106 Damit der Client eine Verbindung zu dem Server aufbauen kann, um von dort |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
107 Daten laden zu können, ist es notwendig den Server weiter zu konfigurieren. |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
108 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
109 ``` |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
110 togglesebool httpd_can_network_connect |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
111 service httpd restart |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
112 ``` |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
113 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
114 Dies erlaubt dem Apache grundsätzlich sich mit einem anderen Dienst zu verbinden. |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
115 Nun muss noch ein Reverse-Proxy eingerichtet werden. Dieser ist nur für |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
116 bestimmte Adressen aktiv. |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
117 |
942
f2001df0e494
Added Documentation how to enable printing
Dustin Demuth <dustin@intevation.de>
parents:
897
diff
changeset
|
118 Sollte aus dem Lada-Client heraus mittels PrintApp in mapfish-print gedruckt werden, |
f2001df0e494
Added Documentation how to enable printing
Dustin Demuth <dustin@intevation.de>
parents:
897
diff
changeset
|
119 so ist auch der zweite Proxy notwendig. |
f2001df0e494
Added Documentation how to enable printing
Dustin Demuth <dustin@intevation.de>
parents:
897
diff
changeset
|
120 |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
121 Folgende Datei sollte unter `/etc/httpd/conf.d/lada.conf` angelegt werden: |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
122 ``` |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
123 <VirtualHost *:80> |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
124 ServerAdmin webmaster@localhost |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
125 #ServerName dummy-host.example.com |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
126 ErrorLog logs/lada-error_log |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
127 CustomLog logs/lada-access_log common |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
128 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
129 # Set multiple Proxys |
897
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
130 ProxyPass /lada/server http://LADASERVER/lada |
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
131 ProxyPassReverse /lada/server http://LADASERVER/lada |
942
f2001df0e494
Added Documentation how to enable printing
Dustin Demuth <dustin@intevation.de>
parents:
897
diff
changeset
|
132 # Add Printing |
f2001df0e494
Added Documentation how to enable printing
Dustin Demuth <dustin@intevation.de>
parents:
897
diff
changeset
|
133 ProxyPass /lada-client/lada-printer http://MAPFISH-PRINT-URL/lada_print |
f2001df0e494
Added Documentation how to enable printing
Dustin Demuth <dustin@intevation.de>
parents:
897
diff
changeset
|
134 ProxyPassReverse /lada-client/lada-printer http://MAPFISH-PRINT-URL/lada_print |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
135 </VirtualHost> |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
136 ``` |
897
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
137 Alle Anfragen an die Adresse `/lada/service`, werden nun an den Server |
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
138 weitergeleitet. |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
139 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
140 ### Authentifizierung |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
141 |
897
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
142 Die Authentifizierung geschieht derzeit gegen einen OpenID-Server. |
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
143 Früher Ansätze nutzten LDAP, in Zukunft soll auch Authentifizierung via SAML2 |
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
144 möglich sein. |
880
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
145 |
c63ecb95dffb
move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
146 Der Lada-Client leitet in Zusammenarbeit mit dem Server automatisch an diesen weiter. |
884
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
147 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
148 # Lizenzen und Bibliotheken |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
149 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
150 Die Anwendung verwendet mehrere Unterkomponenten, diese sind typischerweise im |
886 | 151 Ordner `resources/lib` zu finden. |
884
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
152 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
153 Folgende Bibliotheken werden neben ExtJs verwendet: |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
154 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
155 * Filesaver.js |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
156 https://github.com/eligrey/FileSaver.js |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
157 MIT - License |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
158 * Blob.js |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
159 https://github.com/eligrey/Blob.js |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
160 MIT - License |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
161 * Openlayers 2.13.1 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
162 http://www.openlayers.org |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
163 https://github.com/openlayers/openlayers |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
164 2-Clause BSD-License |
886 | 165 |
166 Diese sind im Ordner `resources/lib` zu finden, und werden in der `Index.html` | |
167 referenziert. | |
168 | |
169 Im Ordner resources/lib/ext befinden sich Bibliotheken die ExtJs ergänzen und in | |
170 der Datei `app.js` aufgeführt werden. | |
171 | |
884
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
172 * Ext.i18n.Bundle 0.3.3 (referenced as Ext.i18n in app.js) |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
173 https://github.com/elmasse/Ext.i18n.Bundle/tree/v0.3.3 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
174 MIT - License |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
175 * Ext.ux.upload 1.1.1 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
176 https://github.com/ivan-novakov/extjs-upload-widget/tree/1.1.1 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
177 3-Clause BSD-License |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
178 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
179 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
180 ## Installation der Bibliotheken |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
181 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
182 Die aufgeführten Bibliotheken können über den Link zu Github als zip-Datei |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
183 heruntergeladen werden. |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
184 |
897
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
185 Dabei ist auf die korrekte Versionsnummer zu achten, falls dies in der Liste |
884
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
186 oben angegeben wurde. |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
187 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
188 ``` |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
189 cd /var/www/html/lada/resources/ |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
190 mkdir lib/ |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
191 cd lib |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
192 wget https://github.com/eligrey/FileSaver.js/archive/master.zip -O FileSaver-js.zip |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
193 wget https://github.com/eligrey/Blob.js/archive/master.zip -O Blob-js.zip |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
194 wget https://github.com/openlayers/openlayers/archive/release-2.13.1.zip -O OpenLayers-2-13-1.zip |
886 | 195 |
196 mkdir ext | |
197 cd ext | |
884
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
198 wget https://github.com/elmasse/Ext.i18n.Bundle/archive/v0.3.3.zip -O Ext-i18n-Bundle-v0-3-3.zip |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
199 wget https://github.com/ivan-novakov/extjs-upload-widget/archive/1.1.1.zip -O Ext-ux-Upload-1-1-1.zip |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
200 ``` |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
201 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
202 Die Dateien sind im Ordner `resources/lib/` zu entpacken |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
203 |
947
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
204 Um OpenLayers als "Single File" Version bereit zu haben, gehen Sie in das |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
205 Verzeichnis `build/resources/lib/OpenLayers` und führen Sie den folgenden Befehl |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
206 aus: |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
207 |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
208 ``` |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
209 python build.py |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
210 ``` |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
211 |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
212 Dies erstellt eine Datei `OpenLayers.js` innerhalb des Verzeichnisses. |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
213 |
ee8837ad99f8
Edited install instructions
Dustin Demuth <dustin@intevation.de>
parents:
942
diff
changeset
|
214 |
884
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
215 ``` |
886 | 216 cd .. |
884
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
217 unzip FileSaver-js.zip |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
218 unzip Blob-js.zip |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
219 unzip OpenLayers-2-13-1.zip |
886 | 220 |
221 cd ext | |
884
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
222 unzip Ext-i18n-Bundle-v0-3-3.zip |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
223 unzip Ext-ux-Upload-1-1-1.zip |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
224 ``` |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
225 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
226 Zum einfacheren Zugriff auf die Bibliothek, symbolische Links erstellen. |
897
44e970cec920
Moved README to a markdown file, fixed typos in INSTALL.markdown
Dustin Demuth <dustin@intevation.de>
parents:
896
diff
changeset
|
227 Dies ist praktisch wenn die Bibliothek ausgetauscht wird, |
884
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
228 dann müssen die Quelltexte nicht angepasst werden |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
229 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
230 ``` |
886 | 231 cd .. |
884
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
232 ln -s Blob.js-master Blob |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
233 ln -s FileSaver.js-master FileSaver |
886 | 234 ln -s openlayers-release-2.13.1/build OpenLayers |
235 | |
236 cd ext | |
884
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
237 ln -s Ext.i18n.Bundle-0.3.3/i18n i18n |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
238 ln -s extjs-upload-widget-1.1.1/lib/upload upload |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
239 ``` |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
240 |
98d7a325f894
More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents:
880
diff
changeset
|
241 Somit ist die Installation der Bibliotheken abgeschlossen. |