This project holds the latest list of "Some code" actions and connections The purpose of this project is to help developers to design new actions according to their needs.
Note: Although it is possible to create actions and connections using some-code interface, SDK provides more connivent way of trouble-shooting the above
npm install
Note: Only executable actions can be created.
The easiest way to create a new action is to copy existing action and amend the metadata files accordingly
This dialogue is created dynamically during runtime based on the metadata
- Action icon (svg) file must match the folder name.
- metaDataDefinition.json - holds a definition of the Metadata tab
- metaData.json - Action metadata file
- properties.json holds action parameters, Parameters and Variables tab
- actionScript.js, the script executed by action, Script tab
Connection defines list of parameters used by a credential. For example the database connection must have database name, user and password and credential is the actual values for database name, user and password
- metaData.json, connection metadata file
- properties.json, connection parameters, Properties tab
- validationScript.js, this script is used for connection validation, Validation Script tab
These are used for testing and running utilities, self explanatory
CONNECTION_TYPE=sqlite DB_HOST= DB_PORT= DB_USER= DB_PASS= DB_NAME=../../some-code/backend/data/db/some-code-repository.sqlite DB_INSTANCE= PUBLIC_FOLDER=../../some-code/backend/public/
KAFKA_HOST= KAFKA_PORT=
FTP_HOST= FTP_PORT= FTP_USER= FTP_PASSWORD=
SMTP_HOST= SMTP_PORT= SMTP_USER= SMTP_PASSWORD=
SQL_CONNECTION_TYPE=sqlite SQL_DB_HOST= SQL_DB_PORT= SQL_DB_USER= SQL_DB_PASS= SQL_DB_NAME=./sakila/sqlite-sakila.sqlite SQL_DB_INSTANCE=
MQTT_PROTOCOL=mqtt:// MQTT_HOST= MQTT_PORT= MQTT_USER= MQTT_PASS=~
RABBITMQ_HOST= RABBITMQ_VHOST= RABBITMQ_PORT= RABBITMQ_USER= RABBITMQ_PASS=
Note: Before running utilities amend env parameters so they point to the right repository
npm run actions-backup
npm run actions-restore
npm run actions-connections
npm run actions-connections
npm run test
or if you want to test handles
npm run test-handles
Note: The tests are run sequentially
Compress/ Decompress actions tests might fail due to the lack of access rights. Run the following command in terminal to address the issue
chmod +x node_modules/7zip-bin/linux/x64/7za
Use index.js as an example
MIT
Some code was created by some developer some time ago.
The objective of some code project is to put some users under a lot pressure.
"Because the pressure makes diamonds."