Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
APPX HTML Client 5.4.5This page gives installation instructions and an overview of the Appx HTML client. | ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
OverviewThe Appx HTML client is designed to allow you to connect to an Appx server and run Appx applications using a browser, either on the desktop, a tablet or a smartphone. When running the client in a browser, no software is required on the desktop, tablet or smart phone. When the user logs on, the necessary code is downloaded to their device as required. | ||||||||
Line: 37 to 37 | ||||||||
The Local Connector only runs on Windows, OS/X or Linux based desktops or tablets. | ||||||||
Changed: | ||||||||
< < | There is a 'Connectivity' indicator in the lower right corner of the browser window with the words 'Remote' and 'Local'. If 'Local' is in green with a "+", it means the local connector is installed & running. Red means the connector is not installed. You can click the 'Local' sign to manually download and install the connector. If the 'Local' icon is blue, it means the requirement for a local connector has been turned off via <meta name="appx-local-required" content="false"> in the client.html page (see below). | |||||||
> > | There is a 'Connectivity' indicator in the lower right corner of the browser window with the words 'Remote' and 'Local'. If 'Local' is in green with a "+", it means the local connector is installed & running. Red means the connector is not installed. You can click the 'Local' sign to manually download and install the connector. If the 'Local' icon is blue, it means the requirement for a local connector has been turned off via metas["appx-local-required"]["value"] = "false"; in the your 'appx-client-settings.js file (see below). | |||||||
Web BrowserThe other option is to use the Web Browser's built in ability to handle files. With this option, the APPX Server Connector stores the file in the Mongo database, then passes a URL to the Web Browser. The Web Browser will either display the file in a new tab if it knows how process that file type, or offer to save the file if it does not know how to display it. This is a better choice if you are planning to deploy your applications on non Windows tablets or smartphones. | ||||||||
Line: 63 to 63 | ||||||||
1) Extract the Web Server File (webhost.zip) into the document folder for your web server. Depending on your web site layout, you may want to put this in its own folder within the web server documents, i.e., /var/www/html/appx. | ||||||||
Changed: | ||||||||
< < | 2) Set the name of the host running the Appx Server Connector in the 'client.html' web page: | |||||||
> > | 2) If this is a new installation, you must rename the appx-client-settingsTemplate.js file to appx-client-settings.js. This file is in the 'js' subdirectory. For example: | |||||||
Changed: | ||||||||
< < | <meta name="appx-proxy-host" content="HOSTNAME"> <!-- Server Connector hostname or web server if tunneling --> | |||||||
> > | [root@localhost]# cd js [root@localhost js]# mv appx-client-settingsTemplate.js appx-client-settings.js | |||||||
Changed: | ||||||||
< < | Change HOSTNAME to the name or IP address of the server running the Appx Server Connector. Do not use localhost unless you plan to run the HTML client on the same server as the Appx Server Connector, i.e., a testing/evaluation environment. | |||||||
> > | 3) If this is a new installation you must set the name of the host running the Appx Server Connector in the 'appx-client-settings.js' file you just renamed: | |||||||
Added: | ||||||||
> > | metas["appx-proxy-host"]["value"] = "localhost"; Change locahost to the name or IP address of the server running the Appx Server Connector. Do not use localhost unless you plan to run the HTML client on the same server as the Appx Server Connector, i.e., a testing/evaluation environment. You can also set any other meta tags that are unique to your installation. The 'appx-client-settings.js' file will never be replaced during an update, so the settings will remain until you change them. | |||||||
Installation - APPX Server Connector ComponentThe APPX Server Connector is the software that connects the HTML clients and the APPX server. This can be installed on the same server as the web server, or the APPX Server, or a completely different machine. If you are not using tunnneling via the web server, then ports 3014/3015 (the default port) needs to be open between the server connector machine and your HTML clients.PrerequisitesThe server that will run the APPX Server Connector requires some additional software: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 94 to 103 | ||||||||
[root@localhost ~]# cd /opt/appxConnectorNotice in this example the module 'string' is missing and the instructions on how to install it are displayed. If any modules are missing on your system, run the appropriate 'npm' command to install them, then re-run the install script. If all modules are present, the service will be created: | ||||||||
Changed: | ||||||||
< < | [root@localhost appxConnector]# node appxConnector-install.js | |||||||
> > |
[root@localhost appxConnector545]# node appxConnector-install.js Checking for required modules... | |||||||
4) Confirm the service is running. In Linux/Unix you can use 'ps -ef|grep appx', and in Windows you can use the 'Services' control panel. Assuming the web server to which we installed the client is 192.168.0.15, and that we installed everything into an 'appx' folder on the web server, then we should be able to get a client login dialog box via: | ||||||||
Changed: | ||||||||
< < | http://192.168.0.15/appx/client.html | |||||||
> > | http://192.168.0.15/appx/client.html | |||||||
You must open ports 3014/3015 on the server running the APPX Server Connector for this connection to work. If you do not want to open any new ports on your firewall, see the section on 'Tunneling/Forwarding'. Post Installation if upgrading an existing HTML client installation | ||||||||
Line: 114 to 124 | ||||||||
There are various reasons why you would want to do this:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
By default the installer will install a server connector on port 3014 and a mongo connector on port 3015. The installer accepts the following arguments: | ||||||||
Added: | ||||||||
> > | ||||||||
node appxConnector-install [appx | mongo] [appxport] [mongoport] Examples: | ||||||||
Line: 130 to 144 | ||||||||
Installs a server connector on 3020 and a mongo connector on 3030. | ||||||||
Changed: | ||||||||
< < | You can then create different client.html pages using the different ports via setting "appx-proxy-port" and "appx-mongo-port" in each client.html page. If you are using port forwarding, then you'll have to create unique names and use those names in client.html instead (they all would use port 80). | |||||||
> > | You can then create different folders to contain the client.html pages using the different ports via setting "appx-proxy-port" and "appx-mongo-port" in each appx-client-settings.js file in each folder. If you are using port forwarding, then you'll have to create unique names and use those names instead (they all would use port 80). | |||||||
Local Connector or Web Browser ConfigurationAs mentioned above, you have a choice on how the HTML client should handle files sent to/from the browser. | ||||||||
Changed: | ||||||||
< < | By default, the HTML client will try to use the local connector. You can suppress the requirement for the Local Connector by changing the following line in "client.html": | |||||||
> > | By default, the HTML client will try to use the local connector. You can suppress the requirement for the Local Connector by uncommenting the following line in your appx-client-settings.js file: | |||||||
Changed: | ||||||||
< < | <meta name="appx-local-required" content="true" > | |||||||
> > | //metas["appx-local-required"]["value"] = "false"; | |||||||
Changed: | ||||||||
< < | Change the "true" to "false" to supress the requirement. | |||||||
> > | Remove the leading // to uncomment the line. | |||||||
If you do not turn off the Local Connector requirement as above, then when the 'client.html' page is loaded it will check to see if the local connector is running on the users desktop. If not, they will get a dialog box offering to download the local connector. The actual installation of the local connector varies by the O/S on the user's desktop:
| ||||||||
Line: 151 to 165 | ||||||||
| ||||||||
Changed: | ||||||||
< < | If you are going to use the Web Browser to handle files instead of the local connector, then turn off the requirement for a Local Connector as above, and change the following line in "client.html": | |||||||
> > | If you are going to use the Web Browser to handle files instead of the local connector, then turn off the requirement for a Local Connector as above, and uncomment the following line in your appx-client-settings.js file: | |||||||
Changed: | ||||||||
< < | <meta name="appx-upload-without-local" content="false" > | |||||||
> > | //metas["appx-upload-without-local"]["value"] = "true"; | |||||||
Changed: | ||||||||
< < | Change the "false" to "true" to force the HTML client to use the Web Browser to handle files. The '+Local' connector icon will be blue in this case. | |||||||
> > | Remove the leading // to uncomment the line. The '+Local' connector icon will be blue in this case. | |||||||
The Application Designer can also control this. Each file chooser widget can be individually set to not use the local connector by using the macro: @FULC=F, however setting "appx-upload-without-local" = true will override this, even if the macro specifies the local connector should be used (@FULC=T).
Tunneling/Forwarding | ||||||||
Line: 163 to 177 | ||||||||
If you do not want to open ports 3014/3015 and would rather use port 80, you can use forwarding instead. For example, to configure Apache 2.4 on Linux you would do the following:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 172 to 186 | ||||||||
If you are running a secure web server (https), you can configure the Appx HTML client to use your SSL connection. Your web server must be configured to accept both SSL (https:) and non-SSL (http:) connections. | ||||||||
Changed: | ||||||||
< < | Change your "client.html" settings as follows (this file is located on your web server): | |||||||
> > | Change the following in your appx-client-settings.js file: | |||||||
appx-proxy-host = hostname of httpd server (i.e., 192.168.1.11) appx-proxy-port = “443" appx-proxy-path = /appxwss/ appx-encryption = “ssl” | ||||||||
Line: 213 to 227 | ||||||||
It is possible to have different CUSTOM.css style sheets. Install the client web server files as normal, then follow these steps:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Troubleshooting
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 232 to 246 | ||||||||
Read what other users have said about this page or add your own comments.
| ||||||||
Changed: | ||||||||
< < | ||||||||
> > | ||||||||
-- JeanNeron - 2015-12-18 \ No newline at end of file |