Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillip Schulte committed Mar 5, 2017
0 parents commit 9faed84
Show file tree
Hide file tree
Showing 11,374 changed files with 2,171,320 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions README.md
@@ -0,0 +1 @@
# docker-shopware-setup
24 changes: 24 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,24 @@
web:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./public:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
links:
- php-7.0
php-7.0:
image: php
volumes:
- ./public:/var/www/html
links:
- mysql
mysql:
image: mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=db
- MYSQL_USER=shopware
- MYSQL_PASSWORD=shopware
64 changes: 64 additions & 0 deletions nginx/default.conf
@@ -0,0 +1,64 @@
server {
listen 80;
server_name localhost;
root /var/www/html;

gzip on;
gzip_buffers 32 4k; #default
gzip_comp_level 1; #default
gzip_min_length 20; #default
gzip_http_version 1.1; #default
gzip_proxied off; #default

if ($time_iso8601 ~ "^(\d{4})-(\d{2})-(\d{2})T(\d{2})") {
set $year $1;
set $month $2;
set $day $3;
set $hour $4;
}

access_log /var/log/nginx/access.log main;


location /.well-known/acme-challenge/ {
allow all;
root /usr/share/nginx/html;
try_files $uri =404;
break;
}

location / {
index index.html index.php shopware.php;
rewrite shopware.dll /shopware.php;
rewrite files/documents/.* /engine last;
#rewrite images/ayww/(.*) /images/banner/$1 last;
rewrite backend/media/(.*) /media/$1 last;
if (!-e $request_filename){
rewrite . /shopware.php last;
}

location ~ \.(jpe?g|png|gif|css|js)$ {
rewrite backend/media/(.*) /media/$1 last;
expires 1M;
}


}

location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}

include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;

fastcgi_pass php-7.0:9000;

}


}
97 changes: 97 additions & 0 deletions public/CONTRIBUTING.md
@@ -0,0 +1,97 @@
# 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>.


# Pull Requests

When creating a pull requests you should mention:

* *Why* you are changing it
* *What* you are changing
* If this will *break* something

Pull request should be English (title, description and code comments, if applicable).

When coding and committing, please:

* Write your commit messages in English
* Have them short and descriptive
* Don't fix things which are related to other issues / pull requests
* Mention your changes in the UPGRADE.md
* Provide a test
* Follow the coding standards


# Coding standards
All contributions should follow the [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md) and [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) coding
standards.

To check for CS issues:

composer cs-check

You can also fix reported errors automatically:

composer cs-fix

If you use `composer cs-fix` to fix issues, make certain you add and commit any files changed!

# Start hacking

To start contributing, just fork the repository and clone your fork to your local machine:

git clone git@github.com:[YOUR USERNAME]/shopware.git

After having done this, configure the upstream remote:

cd shopware
git remote add upstream git://github.com/shopware/shopware.git
git config branch.master.remote upstream

To keep your master up to date:

git checkout master
git pull --rebase
php composer.phar self-update
php composer.phar install
php bin/console sw:migrations:migrate
php bin/console sw:snippets:to:db

Checkout a new topic-branch and you're ready to start hacking and contributing to Shopware:

git checkout -b feature/your-cool-feature

If you're done hacking, filling bugs or building fancy new features, push your changes to your forked repo:

git push origin feature/your-cool-feature


... and send us a pull request with your changes. We'll verify the pull request and merge it with the main branch.

# Running Tests

## Database
For most tests a configured database connection is required.

## Running the tests
The tests are located in the `tests/` directory
You can run the entire test suite with the following command:

vendor/bin/phpunit -c tests

If you want to test a single component, add its path after the phpunit command, e.g.:

vendor/bin/phpunit -c tests tests/Functional/Components/Api/

# Documentation

Developer documentation for Shopware is available [here](https://developers.shopware.com/). You can also contribute to the documentation project by submitting your pull requests to our [Devdocs Github project](https://github.com/shopware/devdocs)

# Translations

Shopware translations are done by the community and can be installed from the plugin store. If you wish to improve Shopware's translations, you can do so in our [Crowdin project page](https://crowdin.com/project/shopware).
124 changes: 124 additions & 0 deletions public/README.md
@@ -0,0 +1,124 @@
# Shopware 5

[![Build Status](https://travis-ci.org/shopware/shopware.svg?branch=5.2)](https://travis-ci.org/shopware/shopware)
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/shopware/localized.svg)](https://crowdin.com/project/shopware)

- **License**: Dual license AGPL v3 / Proprietary
- **Github Repository**: <https://github.com/shopware/shopware>
- **Issue Tracker**: <https://issues.shopware.com>

## Overview

![Shopware 5 collage](http://cdn.shopware.de/github/readme_screenshot.png)

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](https://httpd.apache.org/)
- Apache's `mod_rewrite` module
- MySQL 5.5.0 or above

#### Required PHP extensions:

- <a href="http://php.net/manual/en/book.ctype.php" target="_blank">ctype</a>
- <a href="http://php.net/manual/en/book.curl.php" target="_blank">curl</a>
- <a href="http://php.net/manual/en/book.dom.php" target="_blank">dom</a>
- <a href="http://php.net/manual/en/book.hash.php" target="_blank">hash</a>
- <a href="http://php.net/manual/en/book.iconv.php" target="_blank">iconv</a>
- <a href="http://php.net/manual/en/book.image.php" target="_blank">gd</a> (with freetype and libjpeg)
- <a href="http://php.net/manual/en/book.json.php" target="_blank">json</a>
- <a href="http://php.net/manual/en/book.mbstring.php" target="_blank">mbstring</a>
- <a href="http://php.net/manual/en/book.openssl.php" target="_blank">OpenSSL</a>
- <a href="http://php.net/manual/en/book.session.php" target="_blank">session</a>
- <a href="http://php.net/manual/en/book.simplexml.php" target="_blank">SimpleXML</a>
- <a href="http://php.net/manual/en/book.xml.php" target="_blank">xml</a>
- <a href="http://php.net/manual/en/book.zip.php" target="_blank">zip</a>
- <a href="http://php.net/manual/en/book.zlib.php" target="_blank">zlib</a>
- <a href="http://php.net/manual/en/ref.pdo-mysql.php" target="_blank">PDO/MySQL</a>

### 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](http://ant.apache.org/) 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](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.

* [Shopware Jira ticket submit form](https://issues.shopware.com)

# 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

* [Shopware AG](http://www.shopware.com) - Homepage of shopware AG
* [Shopware Developer Documentation](https://devdocs.shopware.com/)
* [Shopware Community](http://community.shopware.com/) - Shopware Community
* [Shopware Forum](http://forum.shopware.com) - Community forum
* [Shopware Marketplace](http://store.shopware.com) - Shopware Store
* [Shopware on Crowdin](https://crowdin.com/project/shopware) - Crowdin (Translations)

0 comments on commit 9faed84

Please sign in to comment.