Skip to content

4. Running client

Uroš Preložnik edited this page May 28, 2018 · 13 revisions

Once you are finished with database configuration for your project you can access it in following ways:

You have to use exactly the same project name as it is in database, including correct case.

Direct access for registered users

http://localhost/gisapp/your_project

Direct public access (if it is enabled)

http://localhost/gisapp/your_project?public=on

Using mobile client

Mobile client is started automatically when using smart phone, to force mobile client on other device add mobile=on parameter to URL. Mobile Hello World example:

http://localhost/gisapp/helloworld?mobile=on

If you want that mobile client is also default mode with tablets look at this solution https://github.com/uprel/gisapp/issues/54

Using gisportal

Gisportal is separate repository which you can install and works with existing gisapp database. Purpose is to register/login and to browse and open projects with permissions to the user. Single login without the need to login for every project.

More about gisportal

Other related info

Sessions

EQWC uses PHP sessions to store each logged-in user information on server. Default PHP session timeout is 1440 seconds (24 minutes). You can extend that time by adjusting variable session.gc_maxlifetime in php.ini.

Changing code or Debugging

Every release comes with single minifed javascript file (eqwc.js and eqwc_mobile.js). To use javascript source files (if you make any changes or for debugging) you have to set debug variable to true in /admin/settings.php. Look for template file if you do not have variable in your file!

define('DEBUG', true);

Client settings

Because of minified version all client related settings must be in separate file, which is excluded from minified version (/client_common/settings.js). That means that settings work regarding debug variable. This settings control Client in general, with database you manage other Client settings for each project. Look into settings-template.js when updating for any new settings that you can copy and adjust in your settings file.

Read client settings documentation docs/Eqwc.settings.html