juniorpires/sms-projeto-modelo

Projeto Yii 2 avançado com configurações extras

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

This package is not auto-updated.

Last update: 2024-04-26 22:28:59 UTC


README

Instalação:

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:
        'components' => [
                'db' => [
                    'class' => 'yii\db\Connection',
                    'dsn' => 'mysql:host=127.0.0.1;dbname=nomedobanco',
                    'username' => 'root',
                    'password' => '',
                    'charset' => 'utf8',
                ],
        ]
    lembre-se de colocar no host: 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

Verificando se deu certo:

http://localhost/sms-projeto-modelo/frontend/web/index.php

login: admin senha: admin1