-
Notifications
You must be signed in to change notification settings - Fork 0
Archive Trac demo app
Legacy Trac archive page imported from
demo_app. Source: https://genapp.rocks/wiki/wiki/demo_app. Active canonical page: Tutorial-Demo-App. Review age, links, and examples before treating as current.
In the remainder of this tutorial we will deal with the GenApp generated Demo web application representing an "Einstein calculator": it computes the energy based on the user supplied value of the mass (E = mc^2^).
Demo represents a simple web-GUI whose computational module has two input fields (mass and speed of light, the latter is non-editable for obvious reasons :)) and one output field (computed energy); see pictures below.
NOTE: A minimalist example of the Demo application serves to only cover some GenApp basics; we will NOT address any of the advanced GenApp UI capabilities available through the use of arbitrarily nested repeaters, dynamically calculated fields, interactive plots etc. Similarly, we will NOT cover GenApp execution models (job staging, execution on managed cloud resources etc.) and advanced user credentials management. Advanced GenApp topics will be covered elsewhere.
'What we want to accomplish in this section:
- set up a GenApp generated Demo science gateway
- gain familiarity with JSON data file format & GenApp's JSON definitions controlling Demo application
- demonstrate how Demo's GUI appearance can be altered by modifying GenApp's global and module definition files
- learn how to regenerate Demo application after modifying GenApp's JSON definitions
- To install Demo application call {{{getapp.pl}}} script, as follows ({{{$GENAPP}}} should be in your path after proper GenApp framework setup)
$GENAPP/sbin/getapp.pl -gen svn demo
This will install Demo application into the current directory
- To run Demo application, point your browser to:
http://your-ip-address/demo
- where your-ip-address is replaced by the ip address of the server running GenApp You should see the following:
- NOTE: the above {{{getapp.pl}}} script pulls Demo from repository AND calls GenApp installation script which "compiles" the application. In the upcoming sections it will be necessary to manually regenerate Demo every time we perform modifications in the control definition files (see e.g. Modifying the Module section).
