{"id":19351817,"url":"https://github.com/thunder/testsite_builder","last_synced_at":"2025-04-23T07:31:07.878Z","repository":{"id":35096755,"uuid":"181464130","full_name":"thunder/testsite_builder","owner":"thunder","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-09T12:04:15.000Z","size":121,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T09:51:13.980Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thunder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-15T10:26:08.000Z","updated_at":"2022-03-09T09:42:42.000Z","dependencies_parsed_at":"2022-08-08T05:01:01.586Z","dependency_job_id":null,"html_url":"https://github.com/thunder/testsite_builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunder%2Ftestsite_builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunder%2Ftestsite_builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunder%2Ftestsite_builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunder%2Ftestsite_builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thunder","download_url":"https://codeload.github.com/thunder/testsite_builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250391137,"owners_count":21422846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T04:37:20.848Z","updated_at":"2025-04-23T07:31:07.257Z","avatar_url":"https://github.com/thunder.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testsite Builder\n\nThe Testsite Builder provides Drush commands for the creation of test sites based on the report generated by [Sampler module](https://github.com/thunder/sampler).\n\n## Prerequisites\nYour project should be set up to use composer for installing the required modules. Projects that have a different setup are\nnot supported.\n\nThis module provides Drush commands only. If you do not already use Drush, install it before continuing.\n\n## Installation\n\nIn your project-root do:\n\n    composer require thunder/testsite_builder\n\nThen enable the testsite_builder module, either with command line or in the admin UI.\n\n    drush en testsite_builder\n\nFlush the caches, and you are ready to go.\n\n### Adjust database\nTo use the content-create functionality of the testsite_builder, adjust the MySQL database settings.\n\n#### Grant files\nLogin as root and execute\n\n    GRANT FILE on *.* to 'drupaluser'@'localhost'\n    GRANT SUPER on *.* to 'drupaluser'@'localhost'\n\n#### Adjust config\nOpen your my.cnf and add\n```\n[mysqld]\n   secure-file-priv=\"\"\n```\n\nRestart the MySQL Server.\n\n## Usage\n\n#### Create configuration\n\nTo create site configuration from Sampler report, you can execute the following command:\n`drupal testsite-builder:create-config \u003csampler report JSON file\u003e`\n\nThat command removes all existing content and configuration for the site and generates a new configuration from the provided Sampler report file.\n\n#### Create configuration and content\n\nTo create site configuration from Sampler report and content for it, you can execute the following command:\n`drupal testsite-builder:create-config \u003csampler report JSON file\u003e --create-content`\n\nThat command removes all existing content and configuration for the site, generate new configuration and content from the provided Sampler report file.\n\nThe Testsite Builder executes the content creation task in the following steps:\n1. it creates content and stores them in temporal CSV files ready for database import\n2. it imports created CSV files into database\n3. it deletes temporal CSV files after database import\n\nIf you want to investigate CSV files and intermediary configuration used for content creation, you can add an option to the previous command to keep created files. Like this:\n`drupal testsite-builder:create-config \u003csampler report JSON file\u003e --create-content --keep-content-files`\n\nIn this case, the Testsite Builder skips step 3, and the command outputs the path to temp directory with generated CSV files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunder%2Ftestsite_builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthunder%2Ftestsite_builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunder%2Ftestsite_builder/lists"}