Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

classy-test-data

Create Classy records for testing in bulk

What it does

  • Set start and end date for the campaign
  • Create a set number of teams
  • Create a random number of pages per team up to the defined maximum
  • Create a random number of donations per page up to the defined maximum, each with a random amount.

What it doesn't do

  • This can't set created_at dates for fundraisers and teams because those cannot be manipulated through the Classy API. However it does set started_at and ended_at for the fundraising pages, and purchased_at for offline donations.

Setup

Create a .env file with the following:

CLIENT_ID=
CLIENT_SECRET=
EMAIL_PREFIX=test
EMAIL_SUFFIX=@example.com

The email prefix and suffix are used to generate individual email addresses such as test+team1page1@example.com

Tweak data.json by setting your org and target campaign ID, and adjusting other parameters.

About

Create Classy records for testing in bulk

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages