Giter Club home page Giter Club logo

luya-installer's Introduction

Luya Installer v1.0

Need software

  • git
  • docker
  • docker-compose
  • make

Need opens ports 8080 and 43306.

First step

git clone https://github.com/xeritt/luya-installer

Second step

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

Next step

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]

Official site LUYA

https://luya.io/

Stop docker

make docker.stop

Start docker

make docker.start

Config you project name and language, resetPassword, emailVerification

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,
        ],

Install Generator Model/Form/Controller/Views

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],
]

http://localhost:8080/gii

Add you crud template to generator Model/Form/Controller/Views

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'
            ]
        ],        
    ]);

Add kartik GridView and etc. to crud generator

composer require kartik-v/yii2-grid "dev-master"

Create new module

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'
]

Install additional components for module generator

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

Install Mailer yii2-symfonymailer

yii2-symfonymailer

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,
        ]

luya-installer's People

Stargazers

xeritt avatar

Watchers

xeritt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.