# decentral local markets


_ __   ___  ___ _ __ __ _  __ _  ___  _ __ __ _
| '_ \ / _ \/ _ \ '__/ _` |/ _` |/ _ \| '__/ _` |
| |_) |  __/  __/ | | (_| | (_| | (_) | | | (_| |
| .__/ \___|\___|_|  \__,_|\__, |\___/|_|  \__,_|
|_|                        |___/                 
                              Version BETA 0.16.0

## Getting started on a preconfigured Server

requirements

    PHP since version 5.3.7
    MySQL
    cURL (for the connection part)
    ImageMagick or GD

installation

    1. extract ZIP file into desired location on server
    2. edit config.sample.php and rename to config.php
    3. make public/data writable by PHP user (e.g 755)
    4. open URL in Browser and follow the short installation process


## Getting started from scratch

install web server

    apt-get install apache2 libapache2-mod-php5 php5 php-pear php5-xcache

install database

    apt-get install mysql-server mysql-client
    create db and db user and grant access..
    apt-get install php5-mysql
    service mysql restart

get source

    cd /var/www/html
    git clone git@github.com:moritz/peeragora.git

enable mod rewrite

    a2enmod rewrite

edit */etc/apache2/apache2.conf*

    <Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride **All**
        Require all granted
    </Directory>

install image processing

    apt-get install php5-gd

restart server

    service apache2 restart
    firefox http://localhost


----

## License
Copyright (C) 2015 by it's authors. Some rights reserved. See LICENSE

        This software is released under the MIT license:

    Permission is hereby granted, free of charge, to any person obtaining a copy of
    this software and associated documentation files (the "Software"), to deal in
    the Software without restriction, including without limitation the rights to
    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
    the Software, and to permit persons to whom the Software is furnished to do so,
    subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
    FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
    COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
    IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
