/test-case-zinchenko

Test project based on Yii 2, which implements the requirements of the task https://docs.google.com/document/d/1WNDPzGEs-zgsTvoQ6KS3KyP4F_7il94_DWujKc0PkJ0

Primary LanguagePHPBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Test Project based on Yii 2


REQUIREMENTS

The minimum requirement by this project template that your Web server supports PHP 5.4.0.

INSTALLATION

Clone repository

First you need to clone the repository of this project:

git clone https://github.com/pivasikkost/test-case-zinchenko <target folder>

Install via Composer

If you do not have Composer, you may install it by following the instructions at getcomposer.org.

Some project files are not contained in the repository, to install them, go to the project directory and execute the command:

php composer.phar install

CONFIGURATION

Database

Then you need to copy the config/db_default.php file to config/db.php and specify the actual database access for your server, fox example:

return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=yii2basic',
    'username' => 'root',
    'password' => '',
    'charset' => 'utf8',
];

Migration

Then you need to create a database for this project and fill it with migrations. You will need to go to the project directory and execute the command:

php yii migrate

Verifying the installation

After the done actions you need only to configure the web server and go to host url