@demos-europe/demosplan-ui
v0.40.0
Published
Vue components, Vue directives, Design Token and Scss files to build interfaces for demosPlan.
Readme
DEMOSPLAN UI
Vue components, Vue directives, Design Token and Scss files to build interfaces for demosPlan.
Development
Using the local Docker container for development
To have a consistent environment for building demosplan-ui, a Docker configuration exists.
# When running it for the first time, build the container
docker compose build
# Start the container in detached mode
docker compose up -d
# Shell into the container
docker compose exec demosplan-ui bash
# Stop container
docker compose downStarting Storybook
Storybook is used for developing and documenting UI components. To start the Storybook server, open a shell in the Docker container (see "Using the local Docker container") and run the following commands:
# Install dependencies (if not already installed)
yarn install
# Start Storybook development server
yarn sbStorybook only listens on loopback by default, which is not reachable from the host browser inside a container.
yarn sb therefore binds to the container's own address when it runs in a container. The URL depends on where it runs:
- Host: http://localhost:3000
- demosplan-ui container: http://localhost:6006
- demosplan-core container: http://172.22.255.2:3000
