Creating a new development setup for Stripes
Make sure yarn and npm are configured to the folio packages:
Install stripes-cli globally:
Create a new workspace (chose modules you want to have locally and make developing on them). Make sure to choose stripes-sample-platform, where the configuration of modules should be done.
Pick the bare minimum modules below or custom ones
The above will create I directory.
Navigate to stripes/stripes-sample-platform. Make sure to rename .stripesclirc.example to .stripesclirc or just create new .stripesclirc file and make sure it contains the following:
Also, make sure the package.json has the following set of dependencies. Make sure to keep dependencies up to date with what is run on folio environments like folio-testing.
Now it is possible to run the platform from stripes/stripes-sample-platform folder with the command below. Make sure okapi (okapi property in .stripesclirc) backend is up. It could be a local environment or one of the remote environments.
- At this moment the UI development server is up and can be accessible on https://localhost:8080. Credentials are diku_admin/admin.
Further steps which are not required for the initial setup
Over time there is a need to update the packages to use the latest ones. To update workspace modules run the following command from the stripes folder in the root of the workspace:
After that run the following command to install dependencies:
To remove the outcome of the install command run: