Skip to content

Elastic-Suite/shopware-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopware demo env

Run a local shopware env with gally

  • Clone this repository

  • Add Gally and Luma demo catalog plugins

    git clone [email protected]:Elastic-Suite/gally-shopware-connector.git plugins/GallyPlugin
    git clone [email protected]:Elastic-Suite/shopware-lumage-sample-data-plugin.git plugins/LumaSampleData
  • Set env vars:

    Var Description Example value
    SERVER_NAME The shopware domain you want to use shopware.connector.localhost
    GALLY_SERVER_NAME The server name you defined for gally gally.connector.local
  • Start shopware

    docker compose up -d
  • Install plugins

    # Update compose minimum stability in order to be able to require not released sdk package.
    docker compose exec shopware composer config minimum-stability dev
    # Refresh plugin list from source
    docker compose exec shopware bin/console plugin:refresh 
    # Install magento sample data (it can take several minutes)
    docker compose exec shopware bin/console plugin:install MagentoLumaSampleDataPlugin -a
    # Install Gally plugin
    docker compose exec shopware bin/console plugin:install GallyPlugin -a
    # Clear cache
    docker compose exec shopware bin/console cache:clear
  • Install static analysis tools:

    docker compose exec shopware composer require --dev friendsofphp/php-cs-fixer:3.65 phpstan/phpstan
  • You shopware backoffice should be accessible from https://shopware.connector.localhost/admin (or the SERVER_NAME you defined)

    • Login with admin / shopware
    • Configure you store frontend from Sales channels > Storefront
      • Entry point main navigation : Choose Luma category tree
      • Edit domain to http://shopware.connector.localhost (or the SERVER_NAME you defined), http, not https !
    • Configure gally plugin from Extensions > My extensions > GallyPlugin > Configure : enter your local gally instance url and credentials, there is the default value:
      • Url: https://gally.connector.local/api (or the GALLY_SERVER_NAME you defined)
      • Email: your gally admin user email
      • Password: your gally admin user password
  • Then you can sync you shopware catalog with gally and index you data:

    docker compose exec shopware bin/console gally:structure:sync
    docker compose exec shopware bin/console gally:index  
  • Run static analyse tools :

    docker compose exec shopware vendor/bin/php-cs-fixer fix --dry-run --diff custom/plugins/GallyPlugin/
    docker compose exec shopware vendor/bin/phpstan --memory-limit=1G analyse -c custom/plugins/GallyPlugin/phpstan.neon

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published