Customize the look and feel of your applications
This monorepo contains:
- Identity Server Templates
- Self Service Portal
- CSS Library
- UI Icons React Library
- React Component Library
- Node.js (version as specified in the
.nvmrcfile)
This project uses a specific Node.js version as specified in the .nvmrc file. We recommend using nvm (Node Version Manager) to ensure compatibility.
If you have nvm installed, you can automatically use the correct Node.js version by running:
nvm useThis will read the version from .nvmrc and switch to it. If the specified version isn't installed, you'll be prompted to install it with:
nvm installIf you don't have nvm installed:
- macOS/Linux: Follow the official installation guide
- Windows: Use nvm-windows
To install all dependencies across a monorepo using npm workspaces, you just run:
npm installTo start preview servers concurrently for all projects, run:
npm startThen you can access the projects at:
- Curity Identity Server Templates: http://localhost:3000
- Self Service Portal: http://localhost:5173/previewer
- Curity CSS Docs: http://localhost:4321/
To start projects individually, run:
npm start:identity-server- to start the Curity Identity Server Templatesnpm start:sspto start the Self Service Portal
To build everything, run:
npm run buildTo build projects individually, run:
npm run build:identity-serverto build the Identity Server Templatesnpm run build:sspto build the Self Service Portalnpm run build:cssto build Curity CSS librarynpm run build:iconsto build Curity UI Icons React library
To deploy build artifacts (assets, templates, and messages) to a production environment, you can use the deploy.sh script.
-
Set the
IDSVR_HOMEenvironment variable to your Identity Server installation directory:export IDSVR_HOME=/path/to/idsvr/dist -
Build the projects before deploying:
npm run build
Deploy to overrides (default):
./deploy.shThis deploys:
- Identity Server assets, templates, and messages
- Self Service Portal to
templates/overridesandmessages/overrides
Deploy to a specific template area:
./deploy.sh my-template-areaThis deploys:
- Identity Server assets, templates, and messages
- Self Service Portal only to the specified template area (not to overrides)
Identity Server:
- Assets (CSS, Fonts, Images, JS) →
${IDSVR_HOME}/usr/share/webroot - Templates →
${IDSVR_HOME}/usr/share/templates - Messages →
${IDSVR_HOME}/usr/share/messages
Self Service Portal:
- Templates →
${IDSVR_HOME}/usr/share/templates/overrides/apps/self-service-portalortemplate-areas/{area}/apps/self-service-portal - Messages →
${IDSVR_HOME}/usr/share/messages/overrides/{language}/apps/self-service-portalortemplate-areas/{area}/{language}/apps/self-service-portal
Licensed under the Apache License, Version 2.0. See LICENSE.
