Skip to content

Shopware 5 demo shop - with PHP7, Redis, Docker-Setup, Blackfire, Loggging, New-Relic - Setup of cloud machine and installation < 10 Minutes

License

Notifications You must be signed in to change notification settings

shockwave-design/shopware

 
 

Repository files navigation

Shopware 5 demo shop with docker

Docker setup

This repository is based on the official shopware 5 repository and enhances its sources to be started in less than 10 minutes with a full installed

  • nginx
  • php7.0
  • redis (for session management)
  • mysql 5.7

and ready to develop

  • xdebug
  • ant
  • blackfire
  • new relic
  • logging to docker logging driver

Install docker

https://www.docker.com/

e.g. for ubuntu: https://www.docker.com/docker-ubuntu

sudo apt-get -y install \
  apt-transport-https \
  ca-certificates \
  curl

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository \
       "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
       stable"

sudo apt-get update

sudo apt-get -y install docker-ce

Install docker-compose

e.g. for ubuntu: https://github.com/docker/compose/releases

curl -L https://github.com/docker/compose/releases/download/1.13.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

Configure blackfire and papertrail

Configure your blackfire server token in docker-compose.yml:

blackfire:
    image: blackfire/blackfire
    environment:
      BLACKFIRE_SERVER_ID: your-server-id
      BLACKFIRE_SERVER_TOKEN: your-server-token
    networks:
        - front
        - back

and your papertrail port in docker-compose.yml:

  logspout:
      image: gliderlabs/logspout
      volumes:
        - /var/run/docker.sock:/tmp/docker.sock
      command: syslog+tls://logs5.papertrailapp.com:your-papertrail-port

Startup shop infrastructure

cd /your-shop-root-folder/

docker-compose up -d

Install the shop (with demo data)

chmod +x bin/*
bin/docker-install

Hostfile entries

If you want to develop on your own VM add host file entries

Linux

echo "127.0.0.1    dev.shopware.io www.shopware.io" >> /etc/hosts

OS X (Docker Toolbox)

echo "192.168.99.100    dev.shopware.io www.shopware.io" >> /etc/hosts

OS X (Docker for Mac)

echo "127.0.0.1    dev.shopware.io www.shopware.io" >> /etc/hosts

Open your shop in your browser

Open http://dev.shopware.io/

in your browser.

That's it.

Shopware project

Build Status Crowdin

Overview

Shopware 5 collage

Shopware 5 is the next generation of open source e-commerce software made in Germany. Based on bleeding edge technologies like Symfony 2, Doctrine 2 & Zend Framework Shopware comes as the perfect platform for your next e-commerce project. Furthermore Shopware 5 provides an event-driven plugin system and an advanced hook system, giving you the ability to customize every part of the platform.

Visit the forum at http://forum.shopware.com/

Shopware Server Requirements

  • PHP 5.6.4 or above
  • Apache 2.2 or 2.4
  • Apache's mod_rewrite module
  • MySQL 5.5.0 or above

Required PHP extensions:

Installation via Git

Follow the instruction below if you want to install Shopware 5 using Git.

1.) Clone the git repository to the desired location using:

git clone https://github.com/shopware/shopware.git

In case you wish to contribute to Shopware, fork the 5.2 branch rather than cloning it, and create a pull request via Github. For further information please read the section "Get involved" of this document.

2.) Set the correct directory permissions:

chmod -R 755 var
chmod -R 755 web
chmod -R 755 files
chmod -R 755 media
chmod -R 755 engine/Shopware/Plugins/Community

Depending on your server configuration, it might be necessary to set whole write permissions (777) to the files and folders above. You can also start testing with lower permissions due to security reasons (644 for example) as long as your php process can write to those files.

3.) An Ant Buildfile is used to set up the configuration and database connection:

cd build/
ant configure
ant build-unit

4.) Download the test images and extract them:

Go to the root directory of your shopware system and download the test images:

wget -O test_images.zip http://releases.s3.shopware.com/test_images.zip

Unzip the files inside the root directory:

unzip test_images.zip

You can now access your shop

Backend

The backend is located at /backend example http://your.shop.com/backend. Backend Login: demo/demo

The test_images.zip file includes thumbnails for the new responsive theme and the old deprecated template.

If you want to have full featured demo data, you should download the respective demo data plugin in the First Run Wizard or in the Plugin Manager.

Get involved

Shopware is available under dual license (AGPL v3 and proprietary license). If you want to contribute code (features or bugfixes), you have to create a pull request and include valid license information. You can either contribute your code under New BSD or MIT license.

If you want to contribute to the backend part of Shopware, and your changes affect or are based on ExtJS code, they must be licensed under GPL V3, as per license requirements from Sencha Inc.

If you are not sure which license to use, or want more details about available licensing or the contribution agreements we offer, you can contact us at contact@shopware.com.

For more information about contributing to Shopware, please see CONTRIBUTING.md.

How to report bugs / request features?

We've always had a sympathetic ear for our community, so please feel free to submit tickets with bug reports or feature requests. In order to have a single issue tracking tool, we've decided to close the GitHub issue panel in favor of our Jira issue tracker, which is directly connected to our development division.

Copying / License

Shopware is distributed under a dual license (AGPL v3 and proprietary license). You can find the whole license text in the license.txt file.

Changelog

The changelog and all available commits are located under https://github.com/shopware/shopware/commits/5.2.

Further reading

About

Shopware 5 demo shop - with PHP7, Redis, Docker-Setup, Blackfire, Loggging, New-Relic - Setup of cloud machine and installation < 10 Minutes

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • PHP 57.8%
  • JavaScript 33.8%
  • CSS 4.6%
  • Smarty 2.6%
  • HTML 0.6%
  • Gherkin 0.4%
  • Other 0.2%