Table of Contents | ||
---|---|---|
|
DRAFT
Local Dev
To set up a developer machine for Eureka UI components, first set up a workspace using the commands
stripes inventory --fetch
and thenstripes workspace
(note: requires Stripes CLI to be installed). Select the following components:platform-complete
stripes-core
ui-authorization-policies
ui-authorization-roles
ui-plugin-select-application
ui-users
Switch the following repositories from
master
tokeycloak-ramsons
branch:stripes-core
ui-users
Switch
platform-complete
frommaster
tosnapshot
.From base
/stripes
directory, runyarn install
.In
/platform-complete
directory, createstripes.config.js
file and paste the following values:diku2 environment:
Code Block language js module.exports = { okapi: { // application gateway 'url': 'https://kong-evrk2.int.aws.folio.org', 'uiUrl': 'http://localhost:3000', // authentication details: url, secret, clientId 'authnUrl': 'https://keycloak-evrk2.int.aws.folio.org', 'clientId': 'diku2-application', 'tenant': 'diku2', }, config: { idleSessionWarningSeconds: 10, useSecureTokens: false, hasAllPerms: true, logCategories: 'core,path,action,xhr', logPrefix: '--', maxUnpagedResourceCount: 2000, showPerms: false, isSingleTenant: true, tenantOptions: { diku2: { name: 'diku2', clientId: 'diku2-application' } } }, modules: { '@folio/authorization-policies': {}, '@folio/authorization-roles': {}, '@folio/developer' : {}, '@folio/myprofile' : {}, '@folio/plugin-find-user' : {}, '@folio/plugin-select-application' : {}, '@folio/stripes-erm-components' : {}, '@folio/users' : {} }, branding: { logo: { src: './tenant-assets/opentown-libraries-logo.png', alt: 'Opentown Libraries', }, favicon: { src: './tenant-assets/folio-favicon.png', }, }, };
Finally, from
/platform-complete
directory, runyarn stripes serve stripes.config.js
to start dev server.
...
The Eureka project touches several repositories which allow us to interact with Kong and Keycloak backend (instead of Okapi).
stripes-core
keycloak branch points to Poppy release code
keycloak