Skip to content

dpfavand/classy-test-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 protected]

The email prefix and suffix are used to generate individual email addresses such as [email protected]

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published