This guide is based on magedev. Skip to Step 2 for other setups.
git clone https://github.com/magento/magento2.git -b 2.3.4 Source
cat >magedev.json <<'EOL'
{
"magento_version": "2",
"project_name": "twigdemo",
"domain": "twigdemo.local",
"source_folder": "Source/"
}
EOL
magedev docker:start
magedev magento:install
Install sample data.
cp ~/.composer/auth.json Source
magedev docker:cli:ssh
composer config repositories.magento composer https://repo.magento.com/
php -dmemory_limit=6G bin/magento sampledata:deploy
bin/magento setup:upgrade
composer config repositories.wamoco-twig-theme-blank vcs https://github.com/Wamoco/twig-theme-blank.git
composer require wamoco/twig-theme
composer require wamoco/twig-theme-blank
bin/magento module:enable Wamoco_TwigTheme
bin/magento setup:upgrade