Skip to content

Modelo de projeto yii2 usado na secretaria de saúde de Caruaru

License

Notifications You must be signed in to change notification settings

juniorpires/sms-projeto-modelo

Repository files navigation

sms-projeto-modelo

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

About

Modelo de projeto yii2 usado na secretaria de saúde de Caruaru

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published