annotate INSTALL.markdown @ 884:98d7a325f894

More Instructions: How to deal with libraries
author Dustin Demuth <dustin@intevation.de>
date Thu, 23 Jul 2015 11:56:04 +0200
parents c63ecb95dffb
children 03f3ef7e480b
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
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
21 ### Compilieren und Minifizieren der Anwendung
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
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
33 Zur Installation werden Ruby und Java benötigt.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
34
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
35
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
36 Der Befehl hierzu lautet:
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 ```
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
39 $PATHTOSENCHACMD --sdk-path $PATHTOEXTJS compile \
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
40 --classpath=app,resources/lib/datetime,resources/lib/i18n page -str -cla lada.js \
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
41 -yui -i index.html -o build/index.html
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
42 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
43
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
44 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
45 `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
46 enthält alle benötigten Klassen.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
47 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
48 Verzeichnis `build` kopiert werden:
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
49
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
50 | Quelldatei | Zieldatei |
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
51 |--------------------------------------------------------|-------------------------------------------------------------|
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
52 | 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
53 | 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
54 | 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
55 | 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
56 | resources/img/* | build/ressources/img* |
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
57
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
58
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
59 ### Installation Apache
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
60 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
61
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
62 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
63 yum install httpd mod_ssl
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
64 service httpd start
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 ### Aktivierung der Apache Module
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
68
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
69 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
70 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
71 der Option `LoadModule` angegeben. Folgende Module werden benötigt:
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 * ldap_module: Authentifizierung gegen den LDAP
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
74 * headers_module: Setzten der Header nach der Authentifizierung
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
75 * proxy_module: Reverse Proxy des Apache zum Jboss-Server
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 ### Einrichtung der Anwendung
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
78
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
79 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
80 gebaute Version, welche sich im `build` Ordner befindet.
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 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
83 cd /var/www/html
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
84 mkdir lada
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
85 cp -r build/* lada
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
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
88 *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
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 restorecon -Rv /var/www/html/
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 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
95 erreichbar sein.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
96
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
97 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
98 Bibliotheken hinzugefügt werden.
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
99 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
100
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
101 ### Konfiguration Proxy Server
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
102
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
103 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
104 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
105
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 togglesebool httpd_can_network_connect
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
108 service httpd restart
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
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
111 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
112 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
113 bestimmte Adressen aktiv.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
114
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
115 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
116 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
117 <VirtualHost *:80>
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
118 ServerAdmin webmaster@localhost
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
119 #ServerName dummy-host.example.com
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
120 ErrorLog logs/lada-error_log
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
121 CustomLog logs/lada-access_log common
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 # Set multiple Proxys
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
124 ProxyPass /lada/server http://localhost:8080/lada
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
125 ProxyPassReverse /lada/server http://localhost:8080/lada
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
126 </VirtualHost>
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
127 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
128 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
129
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
130 ### Authentifizierung
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
131
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
132 Die Authentifizierung geschieht gegen einen OpenID-Server.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
133
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
134 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
135
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
136 # Lizenzen und Bibliotheken
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
137
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
138 Die Anwendung verwendet mehrere Unterkomponenten, diese sind typischerweise im
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
139 Ordner `resources` zu finden.
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
140
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
141 Folgende Bibliotheken werden neben ExtJs verwendet:
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
142
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
143 * Filesaver.js
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
144 https://github.com/eligrey/FileSaver.js
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
145 MIT - License
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
146 * Blob.js
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
147 https://github.com/eligrey/Blob.js
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
148 MIT - License
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
149 * Openlayers 2.13.1
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
150 http://www.openlayers.org
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
151 https://github.com/openlayers/openlayers
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
152 2-Clause BSD-License
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
153 * 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
154 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
155 MIT - License
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
156 * Ext.ux.upload 1.1.1
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
157 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
158 3-Clause BSD-License
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
159
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
160
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
161 ## Installation der Bibliotheken
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
162
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
163 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
164 heruntergeladen werden.
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
165
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
166 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
167 oben angegeben wurde.
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
168
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
169 ```
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
170 cd /var/www/html/lada/resources/
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
171 mkdir lib/
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
172 cd lib
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
173 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
174 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
175 wget https://github.com/openlayers/openlayers/archive/release-2.13.1.zip -O OpenLayers-2-13-1.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
176 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
177 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
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 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
181
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
182 ```
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
183 unzip FileSaver-js.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
184 unzip Blob-js.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
185 unzip OpenLayers-2-13-1.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
186 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
187 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
188 ```
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 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
191 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
192 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
193
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
194 ```
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
195 ln -s Blob.js-master Blob
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
196 ln -s FileSaver.js-master FileSaver
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
197 ln -s openlayers-release-2.13.1 OpenLayers
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
198 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
199 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
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 Somit ist die Installation der Bibliotheken abgeschlossen.

http://lada.wald.intevation.org