recurse-community-portfolio
recurse-community-portfolio copied to clipboard
Seed test data
Following the installation instructions to set up a developer instance leaves the developer with a mostly empty database, which makes it hard to work on a number of issues - anything involving pagination, rendering of actual projects, working with tags, working with other authors, working with multiple authors, and so on. It would be nice if there were a way to more quickly add some test data to the database.
I don't know exactly how this should work. One way would be to have a command, like apiSync
, that directly creates a bunch of rows in the database. Another would be to have some kind of separate, optional Flyway migration. Another would be to have some Gradle task that loads the data. I'm sure there are other options, as well!
Some of the data we'd need includes:
- tags
- test user(s) (and corresponding
recurse_profile
) - projects (with lorem ipsum or so, some tags, one or more authors, and either a randomly- or user-chosen visibility level)