Configuring Sample Data
Elastic Path provides a set of sample data with the storefront project.
Note: A valid Elastic Path development environment is required to access the sample data.
- From the
react-pwa-reference-storefront/datadirectory, extract the sample catalog data contents into the
- In the
ep-commerce/extensions/database/ext-data/src/main/resources/data/directory, update the
liquibase-changelog.xmlfile with the following sample data:
<include file="ep-blueprint-data/liquibase-changelog.xml" relativeToChangelogFile="true" />
Note: This data must be the only sample data included within the sample data block
- In the
ep-commerce/extensions/database/ext-data/src/main/resources/environments/local/data-population.propertiesfile, set the
Note: This must be the only liquibase context configured
- In the command line, navigate to the
- To run the Data Population tool, run the following command:
mvn clean install -Preset-db
For more information about populating database, see the Populating the Database section.