This project is a demo application designed to showcase the integration of our npm package, @viamedici-spc/configurator-react, with React.
It aims to help web developers quickly grasp how to embed and utilize configurator-react in an SPA, covering everything from initialization to user interaction and typical patterns used in configurator applications.
The app is technically designed to emphasize the features provided by our configuration solution.
https://viamedici-spc.github.io/configurator-react-demo/
The app utilizes a small Configuration Model based on a simple car. It includes several Rules that allow you to explore features like Implicit Decisions, Blocked Values, and Explain for different type of Attributes.
You can follow the workflow below to see these features in action:
-
Select
EU
inSales Region
: Your Explicit Decision automatically triggers an Implicit Decision, whereConstruction
is set toImplicit: Car
. Since no further Explicit Decision is required,Construction
becomes satisfied. -
Select
Manual
inTransmission::Type
: Your Explicit Decision again triggers an Implicit Decision, settingTransmission
toImplicit: included
. -
Select
yes
inHeavyDuty
: This action triggers the Explain feature, revealing which previous selection is blockingyes
. -
In the prompt type
1
and confirm: This applies the first solution. The configuration system removes some of your incompatible Explicit Decisions and applies additional Implicit Decisions. -
Click the Explain button in the Configuration (top left): The configuration system indicates that a Decision for
HorsePower
is required to complete the configuration. -
Type
300
inHorsePower
: The configuration is nowsatisfied
, meaning you have completed the configuration. No Decision forAccessories
is needed as it is marked optional and has been satisfied from the start.
To run the demo application locally, follow these steps:
-
Clone the repository:
git clone https://github.com/viamedici-spc/configurator-react-demo
-
Navigate to the project directory:
cd configurator-react-demo
-
Install dependencies:
npm install yarn install
-
Start the development server:
npm run dev yarn run dev
This project is licensed under the MIT License - see the LICENSE file for details.