This server is used to get the appObjects and generalData for the webApp clients without the need for blockchain or supernode cloud
|
|
||
|---|---|---|
| app | ||
| logs | ||
| util | ||
| .config | ||
| README.md | ||
| start_webAppServer.sh | ||
webAppServer
This server is used to get the appObjects and generalData for the webApp clients without the need for blockchain or supernode cloud
Instructions
To run the server
- Clone/download this repository
- Add a strong
<server_password>in.configfile - Add the
<port>in.configfile for the server to run - open terminal in the directory and run
./start_webAppServer.sh
To use in client side
- copy the floGlobals and webAppClient script tag to the webApp page
- Add the server's
<website_url/ip_addr>:<port>in floGlobals script tag
Properties
requestGeneralData
webAppClient.requestGeneralData(type, vectorClock = '0')
Requests the generalData from webAppServer
- type: type of the message
- vectorClock: vectorClock after which the message should be requested (can be used with Date.now()) (default = '0')
- Returns an object (set of generalData)
requestObjectData
webAppClient.requestObjectData(keyPath)
Requests the objectData/appObjects from webAppServer
- path: (an Array) path of the required object (eg. ['Sample', Property1, property2..]
- Returns an Object/Array (requested path)
requestSubAdminList
webAppClient.requestSubAdminList()
Requests the subAdmin list of the application from webAppServer
- Returns an Array (of subAdmins)
