LUYA setup

composer global require "fxp/composer-asset-plugin:~1.4"

composer create-project luyadev/luya-kickstarter-bootstrap4


composer create-project luyadev/luya-kickstarter:^1.0

mv luya-kickstarter/ web

cd web
cd configs
cp env.php.dist env.php

nastavit databazi:
mysql -u root -p
create database xxx;
grant all on xxx(dbname).* to 'xxx(username)'@'localhost' identified by 'xxxpassword';
flush privileges;

nastavit utf cz kodovani
nastavit db do config.php
copy env.php.dist to env.php

./vendor/bin/luya migrate
./vendor/bin/luya import


./vendor/bin/luya admin/setup
admin@cebin.cz
heslo (doda project manager)
Firstname: Cebin
Lastname: Admin
Language English

./vendor/bin/luya health

vi composer.json
za licence pridat radek
"minimum-stability": "dev",
composer require trk/luya-uikit
./luya import

composer require luyadev/luya-module-matomo
'matomoadmin' => [
'class' => 'luya\matomo\Module',
'serverUrl' => 'https://matomo.example.com', // without trailing slash, use full schema path.
'siteId' => 1,
'apiToken' => 'THE_API_TOKEN',
]

composer require trk/luya-uikit

composer require cebe/luya-module-sitemap

./vendor/bin/luya module/create


Quick NgRest CRUD setup instructions:

Create a (admin) module ./vendor/bin/luya module/create.
Add the module to your application config within the modules section (see the generated README.md file in the module).
Create a migration with a database table ./vendor/bin/luya migrate/create mytable modulename.
After preparation of the migration file (adding table and fields) run the migration command ./vendor/bin/luya migrate.
Run ./vendor/bin/luya admin/crud/create and provide the needed information (like module name, table name, etc.).
Copy the terminal output to the previous generated module file: /admin/Module.php.
Run the import command ./vendor/bin/luya import
Set permission in admin UI under System -> User groups -> Permission

 

Install printeq modules - prepare new printeq app: (preinstalled app is stored in /var/www/printeq.cz/_muster)

require kartik-v/yii2-datecontrol "@dev"
composer require luyadev/luya-module-errorapi
composer require 2amigos/yii2-usuario:~1.0
composer require luyadev/luya-module-crawler:^3.0
composer require luyadev/luya-module-matomo
composer require yiimaker/yii2-email-templates
composer require luyadev/luya-module-forms
./luya migrate
./luya import

composer require luyadev/luya-module-news

composer require kartik-v/yii2-grid "@dev"
composer require --prefer-dist yiisoft/yii2-bootstrap4

Rate this FAQ

0 (0 Votes)