Generate data to use

  1. Use Spring profile "data" to generate purchase data and output the data to purchases.json

  2. Copy purchases.json to the resources/ directory

Run application with data

Run application without the "data" profile and it will populate the database from the data in purchases.json