Yii2 template with Vue admin as backend, based on Quasar Framework
-
Install and build
composer install npm install npm run backend:build
-
Create .env file, use .env.example as an example and fill it
-
Create local configs with necessary data
/config/console.local.php
<?php return [];
/config/db.local.php
<?php return [ 'class' => yii\db\Connection::class, 'dsn' => 'mysql:host=localhost;dbname=dbname', 'username' => 'root', 'password' => '', 'charset' => 'utf8', 'enableSchemaCache' => false, ];
/config/web.local.php
<?php return [ 'bootstrap' => [ 'debug' ], 'modules' => [ 'debug' => [ 'class' => yii\debug\Module::class, ], ], 'components' => [ 'request' => [ 'cookieValidationKey' => '', ], ], ];
/config/params.local.php
<?php return [ 'JwtTokenSecret' => '', ];
-
Generate tokens
php yii generate-token
-
Run migrations
php yii migrate
-
Create user in db (this need to rework in feature)