juniorpires/sms-projeto-modelo

高级 Yii 2 项目,带有额外配置

dev-master 2017-09-06 14:43 UTC

This package is not auto-updated.

Last update: 2024-09-28 00:34:20 UTC


README

安装

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 - 创建数据库

  • 在 common/config/main-local.php 中
        'components' => [
                'db' => [
                    'class' => 'yii\db\Connection',
                    'dsn' => 'mysql:host=127.0.0.1;dbname=nomedobanco',
                    'username' => 'root',
                    'password' => '',
                    'charset' => 'utf8',
                ],
        ]
    记得将主机设置为 127.0.0.1

7 - php yii migrate/up --migrationPath=@vendor/dektrium/yii2-user/migrations

8 - php yii migrate/up --migrationPath=@yii/rbac/migrations

9 - php yii migrate

检查是否成功

https:///sms-projeto-modelo/frontend/web/index.php

登录: admin 密码: admin1