Application launch scripts

The bin folder contains the scripts to run applications based on the IONDV.Framework, such as:

NB. Запускаются локально из папки framework, шаблоны команд указаны в разделах с описанием назначения скрипта.

acl.js

Launch command template: node %NODE_PATH%\bin\acl.js --d %NODE_PATH%\applications\%IONAPP%\acl where NODE_PATH is a path to the platform directory, %IONAPP% is a name of the application.

Adds rights to the system objects, specified in the acl folder.

Also the commands for creating roles and its rights in the system are available in case of missing settings in the aclfolder:

  • Setting the login and the password node bin/adduser.js --name admin --pwd 123
  • Setting the access node bin/acl.js --u admin@local --role admin --p full
  • Rights to generate a token for the rest/token service node bin/acl.js --role admin --p USE --res ws:::gen-ws-token
По такому же принципу можно задавать пользователей и права на отдельные ресурсы системы

export.js

Launch command template: node bin/export --ns %IONAPP%, where``NODE_PATH`` is a path to the platform directory, %IONAPP% is a name of the application (namespace).

Exports data and meta out of the current built and locally running application. Export files are formed in the folder structure, located at the same point as the directory platform in the out folder.

import.js and import-data.js

When importing meta, the data import is not implemented by default. For importing meta along with the data call the command:

node bin/import.js --src %NODE_PATH%/applications/%IONAPP% --with-data --ns %IONAPP% , where``NODE_PATH`` is a path to the directory platform, %IONAPP% is a name of the application (namespace).

For importing the data call:

node %NODE_PATH%/bin/import-data.js --src %NODE_PATH%/applications/%IONAPP%/data --ns %IONAPP%

Besides, when importing meta with the data specify the directory of the application(and the data for import will be located in the data subdirectory), but when importing the data specify the data directory.

setup.js

Launch command template: node %NODE_PATH%\bin\setup %IONAPP% , where NODE_PATH is a path to the directory of the platform, %IONAPP% is a name of the application.

Installs the application, runs the application deployment script, what includes importing and recording to the database the application modules meta.