<commit_before>Ailove Standard Edition
=======================

What's inside?
--------------

Ailove Standard Edition comes pre-configured with the following bundles:

Symfony Standard Edition
~~~~~~~~~~~~~~~~~~~~~~~~

* FrameworkBundle
* SensioFrameworkExtraBundle
* DoctrineBundle
* TwigBundle
* SwiftmailerBundle
* MonologBundle
* AsseticBundle
* JMSSecurityExtraBundle
* WebProfilerBundle (in dev/test env)
* SensioDistributionBundle (in dev/test env)
* SensioGeneratorBundle (in dev/test env)

Sonata Bundles
~~~~~~~~~~~~~~

* SonataAdminBundle - The missing Symfony2 Admin Generator
* SonataMediaBundle
* SonataUserBundle
* SonataEasyExtendsBundle
* SonataIntlBundle
* SonatajQueryBundle

FOS Bundles
~~~~~~~~~~~

* FOSUserBundle

Behat Bundles
~~~~~~~~~~~~~

* MinkBundle
* BehatBundle

Installation
------------

Let's guess you have project named "project". To create project run the following commands::

````
    mkdir project
    cd project
    mkdir cache conf data repo tmp logs
    chmod 777 *
    mkdir repo/dev
    git clone https://github.com/ailove-dev/sf2.1-sonata.git repo/dev
    cd repo/dev
    rm -rf .git
    php bin/vendors install
    git init
    git add .
    git commit -m "Initial commit"
````

About directories structure
~~~~~~~~~~~~~~

* cache - for framework cache
* conf - host independed configuration INI files parsed by app/config/factory.php file
* data - directory for uploaded files. Use directory alias for virtual host ``Alias /data /path/to/project/data``
* repo - this directory is used to store git repo. We have placed it into repo/dev directory. Your virtual host should use repo/dev/htdocs as a document directory in this case
* tmp - use this dir to store tmp files as session and etc.
* logs - store the logs here


.. note::

The ``bin/vendors`` script use composer.phar.

Database initialization
~~~~~~~~~~~~~~~~~~~~~~~

At this point, the ``app/console`` command should start with no issues. However some you need the complete some others step:

* database configuration (create the ``project/conf/database`` file)
Database file example::
    DB_HOST = 127.0.0.1
    DB_NAME = sf21sonata
    DB_USER = user
    DB_PASSWORD =


If DB was not created run the command::

    app/console doctrine:database:create<commit_msg>readme update<commit_after>Ailove Standard Edition
=======================

What's inside?
--------------

Ailove Standard Edition comes pre-configured with the following bundles:

Symfony Standard Edition
~~~~~~~~~~~~~~~~~~~~~~~~

* FrameworkBundle
* SensioFrameworkExtraBundle
* DoctrineBundle
* TwigBundle
* SwiftmailerBundle
* MonologBundle
* AsseticBundle
* JMSSecurityExtraBundle
* WebProfilerBundle (in dev/test env)
* SensioDistributionBundle (in dev/test env)
* SensioGeneratorBundle (in dev/test env)

Sonata Bundles
~~~~~~~~~~~~~~

* SonataAdminBundle - The missing Symfony2 Admin Generator
* SonataMediaBundle
* SonataUserBundle
* SonataEasyExtendsBundle
* SonataIntlBundle
* SonatajQueryBundle

FOS Bundles
~~~~~~~~~~~

* FOSUserBundle

Behat Bundles
~~~~~~~~~~~~~

* MinkBundle
* BehatBundle

Installation
------------

Let's guess you have project named "project". To create project run the following commands::

````
    mkdir project
    cd project
    mkdir cache conf data repo tmp logs
    chmod 777 *
    mkdir repo/dev
    git clone https://github.com/ailove-dev/sf2.1-sonata.git repo/dev
    cd repo/dev
    rm -rf .git
    php bin/vendors install
    git init
    git add .
    git commit -m "Initial commit"
````

About directories structure
~~~~~~~~~~~~~~
* cache - for framework cache
* conf - host independed configuration INI files parsed by app/config/factory.php file
* data - directory for uploaded files. Use directory alias for virtual host ``Alias /data /path/to/project/data``
* repo - this directory is used to store git repo. We have placed it into repo/dev directory. Your virtual host should use repo/dev/htdocs as a document directory in this case
* tmp - use this dir to store tmp files as session and etc.
* logs - store the logs here


.. note::

The ``bin/vendors`` script use composer.phar.

Database initialization
~~~~~~~~~~~~~~~~~~~~~~~

At this point, the ``app/console`` command should start with no issues. However some you need the complete some others step:

* database configuration (create the ``project/conf/database`` file)
Database file example::
    DB_HOST = 127.0.0.1
    DB_NAME = sf21sonata
    DB_USER = user
    DB_PASSWORD =


If DB was not created run the command::

    app/console doctrine:database:create
{'fraction_non_alphanumeric': 0.12876290925071412, 'fraction_numerical': 0.0061524939573720065, 'mean_word_length': 3.8893662728249194, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6657840', 'n_tokens_mistral': 1332, 'n_tokens_neox': 1263, 'n_words': 478}