...
This documentation expects the user to know or have read the How to Setup UI Environment documentation.
Info |
---|
The |
Configuring Environment
The stripes-cli
project can be installed locally but in general the stripes should be used via yarn
.
The first step is to make sure that the yarn
is installed on the system.
This can be done by directly installing using the appropriate installer for your Operating System or if NPM is already installed then it can be installed via npm
.
Installing via npm
would be: npm install -g yarn
.
Note |
---|
Some systems, such as Windows, may require you to setup the bin path in the environment. |
Note | ||
---|---|---|
UI-Workflow may need to be executed using a 2.7 or 2.8 version of stripes.
|
Setup a Workspace
A workspace
directory should be configured with a package.json
file like below and the UI module, such as ui-workflow, cloned in it as a sub-directory.
...
The dependencies, if not yet installed, but be installed by executing the yarn install
command (from the workflow directory).
A custom stripes configuration (stripes.config
) is recommended (and added to the workspace directory), such as the one shown below for ui-workflow
(Be sure to replace URL_TO_OKAPI
with the correct URL and the tenant
with the correct name).
...
Note |
---|
The |
The UI module can now be started for viewing with the command (where stripes.config
is the path and name to the stripes configuration described above):
...
The following is an example on what is used to ensure ui-workflow
is working in the Scratch environment.
Code Block | ||
---|---|---|
| ||
stripes okapi login diku_admin --okapi https://folio-dev-aggies-okapi.ci.folio.org --tenant diku # stripes mod add --okapi https://folio-dev-aggies-okapi.ci.folio.org --user diku_admin --tenant diku # stripes mod enable --okapi https://folio-dev-aggies-okapi.ci.folio.org --user diku_admin --tenant diku # stripes app perms | stripes perm assign --okapi https://folio-dev-aggies-okapi.ci.folio.org --user diku_admin --tenant diku |
Info | |||||
---|---|---|---|---|---|
The
|