1 - composer global require "fxp/composer-asset-plugin:^1.3.1"
2 - composer create-project --stability=dev juniorpires/sms-projeto-modelo
3 - cd sms-projeto-modelo
4 - php init
5 - composer update
6 - crie um banco de dados
- Em common/config/main-local.php:
lembre-se de colocar no host: 127.0.0.1
'components' => [ 'db' => [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=127.0.0.1;dbname=nomedobanco', 'username' => 'root', 'password' => '', 'charset' => 'utf8', ], ]
7 - php yii migrate/up --migrationPath=@vendor/dektrium/yii2-user/migrations
8 - php yii migrate/up --migrationPath=@yii/rbac/migrations
9 - php yii migrate
http://localhost/sms-projeto-modelo/frontend/web/index.php
login: admin senha: admin1