There are 4 areas in the nexl main screen:
(1) Storage explorer is a regular files explorer within
your
storage directory.
Here you can create/delete/rename/move files and directories.
Right click on Storage explorer to perform any action or drag an item to move it to
another directory.
(2) Files viewer/editor. When you click on a file in
Storage explorer, it opens here
for view or edit depending on permissions.
Use Ctrl+S shortcut to save a file ( or via File -> Save menu )
(3) As said earlier, nexl exposes JavaScript files via
HTTP protocol. In this panel we
can create and test HTTP request to resolve some data from JavaScript
file(s).
HTTP request to nexl server based on:
- relative path to JavaScript file.
- expression in query string which tells what exactly you need to resolve from the
currently opened JavaScript file.
- optional query string arguments.
To test an HTTP request to nexl server first open or create a JavaScript file, write
nexl expression,
optionally provide arguments ( click arguments button ) and then click on "Test HTTP
request" green button
( or press F9 ). The result will be displayed in "Output" panel.
Under the "nexl expression" field we have automatically generated URL which can be
used for your needs
to perform the same HTTP request outside nexl GUI application.
For example if we open a
/settings/qa/info.js
JavaScript file and enter a
${data}
expression,
the URL will look like this:
http://localhost:8080/settings/qa/info.js?expression=${data}
You can click on that URL and it will be opened in a new tab of your browser.
Please pay attention the URL might be
escaped
when you click on it.
To provide an arguments click on "Arguments" button ( or press F8 ). It will toggle
an "Arguments" dialog box.
Arguments are key=value pairs which are
passed to the HTTP request as
query strings. Arguments are needed to optionally override existing variables in
JavaScript file.
For example you can specify there a
data as a key and
1 as value. It will override a value of
data variable in "info.js"
JavaScript file for current HTTP
request.
The original file content will remain unchanged.
(4)
This panel displays HTTP requests history which were made by clicking on "Play"
green button.