Skip to content

Instantly share code, notes, and snippets.

@bka
Last active June 5, 2020 11:00
Show Gist options
  • Save bka/72aedec6fffb5058c2b524c54e4dc6fa to your computer and use it in GitHub Desktop.
Save bka/72aedec6fffb5058c2b524c54e4dc6fa to your computer and use it in GitHub Desktop.
Magento 2 Installation Guide with sample data for Twig Theme using magedev

Step 1: Install Magento 2 with Sample Data

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

Step 2: Install Twig Theme

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment