Populating test data for an existing installation #1868
michaelbromley
announced in
How-to Guides
Replies: 1 comment
-
still works. just need to add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When installing with
@vendure/create
, you have the option of populating test data (products, payment methods, countries, zones, tax rates etc).This guide illustrates how to populate that test data again on an existing Vendure installation, without needing to re-install from scratch.
npm install --save-dev @vendure/create
. This installs the "create" package, which contains the test data we will need.populate.ts
script that looks like this:Running that script will re-create your database tables and then populate with fresh test data.
Beta Was this translation helpful? Give feedback.
All reactions