The minimum requirement by this project template that your Web server supports PHP 5.4.0.
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this project template using the following commands:
composer global require "fxp/composer-asset-plugin:^1.2.0"
composer install
Edit the file config/db.php
with real data, for example:
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=databasename',
'username' => 'usernameroot',
'password' => 'passwordroot',
'charset' => 'utf8',
];
NOTES:
- Yii won't create the database for you, this has to be done manually before you can access it.
- Check and edit the other files in the
config/
directory to customize your application as required.
You can install this migration using the following command:
php yii migrate/up --migrationPath=@vendor/dektrium/yii2-user/migrations // yii2-user vendor migration
You can install this migrations using the following command:
php yii migrate
Import products from CookDrive
Run parser CookDrive.com.ua using the following command:
php yii import
or
php yii import/index
If you need using own google oauth application and edit the file config/hello.ini
with real data, for example:
oauth_google_clientId="901813169709-1741jubl302jn9mgt2o5f3mq8e5hlsct.apps.googleusercontent.com" // google client ID
oauth_google_clientSecret="EEecPlY5kUmszUet2OL27-kZ" // client secret
...some code...
php yii serve