annotate INSTALL.markdown @ 886:03f3ef7e480b

Install.markdown
author Dustin Demuth <dustin@intevation.de>
date Thu, 23 Jul 2015 15:31:09 +0200
parents 98d7a325f894
children 8e40f89624d6
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
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
14 der README Datei des Server-Pakets. Siehe Projektwebseite. Optional: Die
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
15 Authentifizierung kann gegen einen LDAP-Server durchgeführt werden. Beispiele
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
16 finde sich in dem Installationbeispiel.
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
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
21 ### Kompilieren und Minifizieren der Anwendung
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
22
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
23 Zum Compilieren der Anwendung kommt das Tool Sencha Cmd 4.0.x zum Einsatz.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
24 Mit Hilfe dieses Tools kann der Quellcode in eine einzelne Datei zusammengefasst
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
25 und minifiziert werden. Dies beschleunigt das Laden der Anwendung im Browser erheblich
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
26
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
27 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
28 an. Beachten Sie: Sencha Cmd ist keine freie Software.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
29
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
30 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
31 [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
32
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
33 Zur Installation von Sencha Cmd werden Ruby und Java benötigt.
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
34
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
35 Bevor Sie die Anwendung kompilieren können, müssen Sie die im Abschnitt
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
36 *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
37
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
38
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
39 Zum Kompilieren nutzen Sie die folgende Anweisung:
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
40
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
41 ```
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
42 $PATHTOSENCHACMD --sdk-path $PATHTOEXTJS compile \
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
43 --classpath=app,resources/lib/ext/upload,resources/lib/ext/i18n page \
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
44 -yui -i index.html -o build/index.html
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
45 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
46
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
47 Das Verzeichnis `build` enthält dann eine Datei `index.html` und eine Datei
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
48 `lada.js`. Die Datei `lada.js` ist eine komprimierte Version der Anwendung und
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
49 enthält alle benötigten Klassen.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
50 Für die Produktivversion müssen die folgenden Dateien zusätzlich in das
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
51 Verzeichnis `build` kopiert werden:
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
52
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
53 | Quelldatei | Zieldatei |
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
54 |--------------------------------------------------------|-------------------------------------------------------------|
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
55 | extjs/resources/css/ext-all-gray.css | build/extjs/resources/css/ext-all-gray.css |
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
56 | extjs/resources/ext-theme-gray/ext-theme-gray-all.css | build/extjs/resources/ext-theme-gray/ext-theme-gray-all.css |
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
57 | resources/i18n/Lada.properties | build/resources/i18n/Lada.properties |
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
58 | resources/i18n/Lada_de-DE.properties | build/resources/i18n/Lada_de-DE.properties |
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
59 | resources/img/* | build/ressources/img* |
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
60 | resources/lib/* (alles ausser ext Ordner) | build/resources/lib |
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
61
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
62
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
63 Um OpenLayers als "Single File" Version bereit zu haben, gehen Sie in das Verzeichnis
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
64 `build/resources/lib/OpenLayers` und führen Sie den folgenden Befehl aus:
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
65
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
66 ```
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
67 python build.py
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
68 ```
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
69
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
70 Dies erstellt eine Datei `OpenLayers.js` innerhalb des Verzeichnisses.
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
71 Diese wird in der Webanwendung referenziert.
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
72
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
73 ### Installation Apache
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
74 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
75
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 yum install httpd mod_ssl
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
78 service httpd start
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
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
81 ### Aktivierung der Apache Module
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
82
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
83 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
84 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
85 der Option `LoadModule` angegeben. Folgende Module werden benötigt:
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
86
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
87 * ldap_module: Authentifizierung gegen den LDAP
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
88 * headers_module: Setzten der Header nach der Authentifizierung
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
89 * proxy_module: Reverse Proxy des Apache zum Jboss-Server
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 ### Einrichtung der Anwendung
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 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
94 gebaute Version, welche sich im `build` Ordner befindet.
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 cd /var/www/html
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
98 mkdir lada
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
99 cp -r build/* lada
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
100 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
101
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
102 *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
103
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
104 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
105 restorecon -Rv /var/www/html/
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
106 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
107
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
108 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
109 erreichbar sein.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
110
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
111 Damit die Anwendung vollständig funktiniert, müssen ggfs noch weitere
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
112 Bibliotheken hinzugefügt werden.
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
113 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
114
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
115 ### Konfiguration Proxy Server
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
116
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
117 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
118 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
119
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
120 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
121 togglesebool httpd_can_network_connect
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
122 service httpd restart
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
123 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
124
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
125 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
126 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
127 bestimmte Adressen aktiv.
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 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
130 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
131 <VirtualHost *:80>
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
132 ServerAdmin webmaster@localhost
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
133 #ServerName dummy-host.example.com
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
134 ErrorLog logs/lada-error_log
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
135 CustomLog logs/lada-access_log common
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
136
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
137 # Set multiple Proxys
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
138 ProxyPass /lada/server http://localhost:8080/lada
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
139 ProxyPassReverse /lada/server http://localhost:8080/lada
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
140 </VirtualHost>
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
141 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
142 Alle Anfragen an die Adresse `/lada/service`, werden nun an den Server weitergeleitet.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
143
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
144 ### Authentifizierung
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 Die Authentifizierung geschieht gegen einen OpenID-Server.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
147
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
148 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
149
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
150 # Lizenzen und Bibliotheken
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
151
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
152 Die Anwendung verwendet mehrere Unterkomponenten, diese sind typischerweise im
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
153 Ordner `resources/lib` zu finden.
884
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 Folgende Bibliotheken werden neben ExtJs verwendet:
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
156
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
157 * Filesaver.js
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
158 https://github.com/eligrey/FileSaver.js
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
159 MIT - License
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
160 * Blob.js
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
161 https://github.com/eligrey/Blob.js
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
162 MIT - License
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
163 * Openlayers 2.13.1
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
164 http://www.openlayers.org
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
165 https://github.com/openlayers/openlayers
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
166 2-Clause BSD-License
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
167
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
168 Diese sind im Ordner `resources/lib` zu finden, und werden in der `Index.html`
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
169 referenziert.
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
170
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
171 Im Ordner resources/lib/ext befinden sich Bibliotheken die ExtJs ergänzen und in
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
172 der Datei `app.js` aufgeführt werden.
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
173
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
174 * 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
175 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
176 MIT - License
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
177 * Ext.ux.upload 1.1.1
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
178 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
179 3-Clause BSD-License
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
180
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 ## Installation der Bibliotheken
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
183
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
184 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
185 heruntergeladen werden.
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
186
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
187 Dabei ist auf die korrekte Versionnummer zu achten, falls dies in der Liste
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
188 oben angegeben wurde.
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
189
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
190 ```
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
191 cd /var/www/html/lada/resources/
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
192 mkdir lib/
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
193 cd lib
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
194 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
195 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
196 wget https://github.com/openlayers/openlayers/archive/release-2.13.1.zip -O OpenLayers-2-13-1.zip
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
197
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
198 mkdir ext
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
199 cd ext
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
200 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
201 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
202 ```
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
203
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
204 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
205
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
206 ```
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
207 cd ..
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
208 unzip FileSaver-js.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
209 unzip Blob-js.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
210 unzip OpenLayers-2-13-1.zip
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
211
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
212 cd ext
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
213 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
214 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
215 ```
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
216
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
217 Zum einfacheren Zugriff auf die Bibliothek, symbolische Links erstellen.
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
218 Dies is praktisch wenn die Bibliothek ausgetauscht wird,
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
219 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
220
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
221 ```
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
222 cd ..
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
223 ln -s Blob.js-master Blob
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
224 ln -s FileSaver.js-master FileSaver
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
225 ln -s openlayers-release-2.13.1/build OpenLayers
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
226
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
227 cd ext
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
228 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
229 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
230 ```
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
231
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
232 Somit ist die Installation der Bibliotheken abgeschlossen.

http://lada.wald.intevation.org