Giter Site home page Giter Site logo

mediaarea-website's Introduction

MediaArea-Website

Build Status

How to install

Dependencies

  • A web server (tested on Apache 2.4)
    • mod_rewrite is recommended
  • PHP (tested on version 7.0 and 7.1)
    • Mandatory packages for Debian-like distributions : sudo apt-get install libapache2-mod-php7.0 php7.0-cli php7.0-intl php7.0-curl php7.0-opcache php7.0-mysql
    • Mandatory packages for RedHat-like distributions : sudo dnf install php php-cli php-intl php-mbstring php-pdo php-process php-xml php-opcache php-mysqlnd
    • date.timezone parameter should be set in your php.ini (both cli and apache module)
  • MySQL >= 5.1
  • Composer

Get sourcecode

From git

Clone MediaArea-Website repository

git clone https://github.com/MediaArea/MediaArea-Website.git

Install

MySQL

Create a user and a datable, give the user the all rights to this database.

CREATE USER '<USER>'@'<HOST>' IDENTIFIED BY '<PASSWORD>';
GRANT ALL ON `<DB>`.* TO '<USER>'@'<HOST>';
CREATE DATABASE IF NOT EXISTS `<DB>`;

Dependencies

Get dependencies with composer

cd YOUR_PATH/MediaArea-Website/
composer install

You'll get some configuration questions, you can use these fake values if you don't care about the payments.

SQL tables and assets

php bin/console doctrine:migrations:migrate --env=prod --no-interaction
php bin/console assetic:dump --env=prod

Apache

Add a vhost to access MediaArea-Website, like this minimal example :

<VirtualHost *:80>
    ServerName WWW.YOURWEBSITE.COM
    DocumentRoot "YOUR_PATH/MediaArea-Website/web/"
    <Directory "YOUR_PATH/MediaArea-Website/web/">
        AllowOverride All
        Options -Indexes
        <IfModule mod_authz_core.c>
          # Apache 2.4
            Require all granted
        </IfModule>
        <IfModule !mod_authz_core.c>
          # Apache 2.2
            Order allow,deny
            allow from all
        </IfModule>
    </Directory>
</VirtualHost>

Allow apache user to write in cache and log directory, some methods are explain in Symfony documentation

Doc

Translations

Translations are stored is XML format here one file per language

Template

Templates are in twig format, they are available here

Coding standard

MediaArea-Website follow PSR1 and PSR2 standard
The source code is analyzed with PHP Mess Detector with the rules in phpmd.xml and PHP-CS-Fixer with PSR1 and PSR2 rules

Cache

Remind to clear the cache after a modification :

php bin/console cache:clear --env=prod

mediaarea-website's People

Contributors

ablwr avatar dependabot[bot] avatar dericed avatar digitensions avatar g-maxime avatar guillaumeroques avatar jeromemartinez avatar kieranjol avatar libbyhopfauf avatar retokromer avatar the-j0k3r avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mediaarea-website's Issues

NTTW5 link

Screenshot 2020-01-28 at 13 01 07

Sorry, I don’t have the time to open a PR now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.