- git
- docker
- docker-compose
- make
Need opens ports 8080 and 43306.
git clone https://github.com/xeritt/luya-installer
Open Makefile and rename project_name.
project_name:=luya-kickstarter
If you want change docker image PHP_VERSION.
php8.1.3 php8.2.10 Docker image wyveo/nginx-php-fpm
yii2php8.2.4 Docker image yiisoftware/yii2-php:8.2-fpm-nginx
dwchiang-nginx-php8.2.9-fpm Docker image dwchiang/nginx-php-fpm
make
cd [project_name]
make istall
make setup
You can now access your website in the browser under http://localhost:8080
Default user [[email protected]] and password [admin]
make docker.stop
make docker.start
Configure configs/config.php
'siteTitle' => 'My Project',
'defaultRoute' => 'cms',
'language' => 'ru-RU',
'admin' => [
'class' => 'luya\admin\Module',
'secureLogin' => false, // when enabling secure login, the mail component must be proper configured otherwise the auth token mail will not send.
'strongPasswordPolicy' => false, // If enabled, the admin user passwords require strength input with special chars, lower, upper, digits and numbers
'interfaceLanguage' => 'ru', // Admin interface default language.
'autoBootstrapQueue' => true, // Enables the fake cronjob by default, read more about queue/scheduler: https://luya.io/guide/app-queue
'resetPassword' => true,
'emailVerification' => true,
],
https://github.com/schmunk42/yii2-giiant
composer require schmunk42/yii2-giiant:"@stable"
Configure configs/config.php
Add to components
'i18n' => [
'translations' => [
'*' => [
'class' => 'yii\i18n\PhpMessageSource',
],
]
]
'user' => [
'identityClass' => 'common\models\User',
'enableAutoLogin' => true,
'identityCookie' => ['name' => '_identity-frontend', 'httpOnly' => true],
]
Configure configs/config.php
$config->module('gii', [
'class' => 'yii\gii\Module',
'allowedIPs' => ['*'],
'generators' => [
'giiant-crud' => [
'class' => 'schmunk42\giiant\generators\crud\Generator',
'templates' => [
'zbs' => '@app/generators/crud/zbs',
],
//change base class for admin
'baseControllerClass' => 'luya\admin\base\Controller',
//change base class for frontend
//'baseControllerClass' => '\luya\web\Controller'
]
],
]);
composer require kartik-v/yii2-grid "dev-master"
Configure configs/config.php ONLY GENERATE. After off this option.
'user' => [
'class' => 'common\models\User',
make module
Configure configs/config.php add to modules
'gridview' => [
'class' => '\kartik\grid\Module'
]
Yii2 Framework web closures, traits and helpers
https://github.com/dmstr/yii2-web
composer require --prefer-dist dmstr/yii2-web:dev-master
Yii 2 Font Awesome Asset Bundle
https://github.com/rmrevin/yii2-fontawesome
composer require "rmrevin/yii2-fontawesome:~3.5"
Widgets for AdminLte theme
https://github.com/Insolita/yii2-adminlte-widgets/tree/master
composer require --prefer-dist insolita/yii2-adminlte-widgets "^3.2
composer.phar require --prefer-dist yiisoft/yii2-symfonymailer
Configure configs/config.php add to components
'mailer' => [
'class' => \yii\symfonymailer\Mailer::class,
'transport' => [
'scheme' => 'smtp',
'host' => 'localhost',
'username' => 'user',
'password' => 'pass',
'port' => 25,
'dsn' => 'native://default',
],
//'viewPath' => '@common/mail',
'viewPath' => '@app/modules/signup/common/mail',
// send all mails to a file by default. You have to set
// 'useFileTransport' to false and configure transport
// for the mailer to send real emails.
'useFileTransport' => false,
]