This repository is a base repository that contains Docker environment for Magento ^2.3 and is dedicated for ScandiPWA theme development and ScandiPWA based project development.
You can easily access demo simply clicking here
Project docs are available on docs.scandipwa.com
For Docker details please refer to Docker
For ScandiPWA Theme details please refer to theme repository
The repository is based on Magento 2.3.0. All components and modules, except the further theme development must be managed by Composer
- scandipwa/installer
- scandipwa/source
- scandipwa/graphql
- scandipwa/catalog-graphql
- scandipwa/cms-graphql
- scandipwa/menu-organizer
- scandipwa/persisted-query
- scandipwa/slider-graphql
- scandipwa/slider
- scandipwa/route171
- scandiweb/module-core
- Make sure requirements are met
- Clone the repository
git clone [email protected]:scandipwa/scandipwa-base.git
- Set
COMPOSER_HOME
on your machine (you can obtain credentials using Magento2 Marketplace)
export COMPOSER_AUTH='{"http-basic":{"repo.magento.com": {"username": "REPLACE_THIS", "password": "REPLACE_THIS"}}}'
- Generate selfsigned ssl certificates with (more details here )
make cert
- Pull and run the infrastructure
docker-compose -f docker-compose.yml -f docker-compose.local.yml -f docker-compose.ssl.yml pull
docker-compose -f docker-compose.yml -f docker-compose.local.yml -f docker-compose.ssl.yml up -d
NOTICE: Do the following steps only in case you need ScandiPWA DEMO
- Stop the application container
docker-compose stop app
- Recreate existing database
docker-compose exec mysql mysql -u root -pscandipwa -e "DROP DATABASE magento; CREATE DATABASE magento;"
- Import DEMO ScandiPWA database:
docker-compose exec -T mysql mysql -u root -pscandipwa magento < deploy/latest.sql
- Recreate Docker infrastructure
docker-compose -f docker-compose.yml -f docker-compose.local.yml -f docker-compose.ssl.yml up -d --force-recreate
-
Download media
-
Put archive into the
pub/media
folder (if mounted) -
Extract archive
tar -zxvf scandipwa_media.tgz