GithubHelp home page GithubHelp logo

luyadev / luya-kickstarter Goto Github PK

View Code? Open in Web Editor NEW
46.0 13.0 26.0 7 MB

Kickstart a new LUYA project application.

Home Page: https://luya.io

License: MIT License

PHP 96.21% CSS 3.79%
php luya yii2 boilerplate hacktoberfest

luya-kickstarter's Introduction

LUYA Logo

LUYA Kickstarter Application

LUYA Total Downloads License Slack Support

Attention: This template still uses Bootstrap 3. You can find a newer Bootstrap 4 based kickstarter template.

LUYA is a Yii 2 PHP Framework wrapper which provides out of the box functions like an administration interface, a beautiful looking content management system, payment modules, agency workflows and other tools to develop your website pretty fast!

LUYA RC4 Admin

Installation

We have a made an absolut easy to understand STEP-BY-STEP Guide to install LUYA:

Questions and Problems

If you have any questions or problems, don't hesitate to create a new issue on the project repository.

Contribution

We are always looking for people who share their thoughts, code and problems with us. Below the links to the contribution guides:

Help us building LUYA

luya-kickstarter's People

Contributors

agaplus avatar arollmann avatar asyou99 avatar boehsermoe avatar cebe avatar dependabot[bot] avatar dev7ch avatar gvasilopulos avatar hbugdoll avatar jdl747 avatar johnnymcweed avatar martinpetrasch avatar masihfathi avatar nadar avatar nandes2062 avatar rainerch avatar rochdi80tn avatar rodzadra avatar samdark avatar themaaarc avatar vuongxuongminh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

luya-kickstarter's Issues

Exception on "./vendor/bin/luya import"


49 migrations were applied.

Migrated up successfully.
sergey@sergey-sayulinuxmint ~/www/luya-common.loc $ ./vendor/bin/luya import
Exception 'yii\base\InvalidArgumentException' with message 'luya\cms\models\BlockGroup has no attribute named "groupLabel".'

in /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/db/BaseActiveRecord.php:526

Stack trace:
#0 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-module-admin/src/ngrest/plugins/Text.php(71): yii\db\BaseActiveRecord->setAttribute('groupLabel', '')
#1 [internal function]: luya\admin\ngrest\plugins\Text->onAssign(Object(yii\db\AfterSaveEvent))
#2 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/base/Component.php(627): call_user_func(Array, Object(yii\db\AfterSaveEvent))
#3 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/db/BaseActiveRecord.php(992): yii\base\Component->trigger('afterInsert', Object(yii\db\AfterSaveEvent))
#4 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/db/ActiveRecord.php(560): yii\db\BaseActiveRecord->afterSave(true, Array)
#5 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/db/ActiveRecord.php(515): yii\db\ActiveRecord->insertInternal(NULL)
#6 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/db/BaseActiveRecord.php(670): yii\db\ActiveRecord->insert(true, NULL)
#7 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-module-cms/src/admin/importers/BlockImporter.php(162): yii\db\BaseActiveRecord->save()
#8 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-module-cms/src/admin/importers/BlockImporter.php(87): luya\cms\admin\importers\BlockImporter->getBlockGroupId(Object(luya\cms\frontend\blocks\HtmlBlock))
#9 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-module-cms/src/admin/importers/BlockImporter.php(41): luya\cms\admin\importers\BlockImporter->saveBlock('\\luya\\cms\\front...')
#10 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-core/console/commands/ImportController.php(157): luya\cms\admin\importers\BlockImporter->run()
#11 [internal function]: luya\console\commands\ImportController->actionIndex()
#12 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#13 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#14 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/console/Controller.php(148): yii\base\Controller->runAction('', Array)
#15 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/base/Module.php(528): yii\console\Controller->runAction('', Array)
#16 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction('import', Array)
#17 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/console/Application.php(147): yii\console\Application->runAction('import', Array)
#18 /home/sergey/www/luya-common.loc/vendor/yiisoft/yii2/base/Application.php(386): yii\console\Application->handleRequest(Object(yii\console\Request))
#19 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-core/base/Boot.php(205): yii\base\Application->run()
#20 /home/sergey/www/luya-common.loc/vendor/luyadev/luya-core/bin/luya(22): luya\base\Boot->applicationConsole()
#21    ###{main}```

questions about project

I am searching for cms for my project. I like Yii2 and your system looks interesting.
I have some questions.

  1. If i need some new fields in DB at Class User or some else and some new function on it, what i need to do? How can i expand it?
  2. If i need different content for different sites on different languages? So like here
    us-fr => 'foofoo'
    us-en => 'bazbaz'
    or different layout on different sites?
    It like multisites
  3. If i need my own auth from my ActiveDirectory? Do i need to refactor you code? I need to refactor your vendor?
  4. Can i use AuthManager like in Yii2?

Docker: Port allocation error

Until this step all works fine, but it looks like the same container is started more then one time, error output:

Starting docker_luya_web_1 ...
docker_luya_db_1 is up-to-date
Starting docker_luya_web_1
Starting docker_luya_composer_1 ...
docker_luya_php_1 is up-to-date
Starting docker_luya_web_1 ... error

ERROR: for docker_luya_web_1  Cannot start service luya_web: driver failed programming external connectivity on endpoint docker_luya_web_1 (042b3502caf1ee94de8b52bbf719493ca128109eb65666670ec7365db96946aa): Error starting userland proxy: BiStarting docker_luya_composer_1 ... done

ERROR: for luya_web  Cannot start service luya_web: driver failed programming external connectivity on endpoint docker_luya_web_1 (042b3502caf1ee94de8b52bbf719493ca128109eb65666670ec7365db96946aa): Error starting userland proxy: Bind for 0.0.0.0:8080 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.

Revert favicons

I still believe we should remove old this bloating boilerplate stuff like the different favicons.

If i am going to setup a new page (kickstart luya project) - i have to create those favicons anyhow by myself with one of those online generators - so people have to remove all those images and values from main layout - so i think this makes just no sense.

@luyadev/coredev thoughts?

composer create-project luyadev/luya-kickstarter:~1.0.0

Hello, i have a problem on install kickstarter

composer global require "fxp/composer-asset-plugin:~1.4"
composer create-project luyadev/luya-kickstarter:~1.0.0
and then i have a message
http://prntscr.com/i9zosj

ubuntu@ubuntu16:/var/www/luya-kickstarter$ composer install
The "extra.asset-installer-paths" option is deprecated, use the "config.fxp-asset.installer-paths" option
The "extra.asset-pattern-skip-version" option is deprecated, use the "config.fxp-asset.pattern-skip-version" option
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - yiisoft/yii2-gii 2.0.6 requires bower-asset/typeahead.js 0.10.* | ~0.11.0 -> no matching package found.
    - yiisoft/yii2-gii 2.0.5 requires bower-asset/typeahead.js 0.10.* | ~0.11.0 -> no matching package found.
    - yiisoft/yii2-gii 2.0.4 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
    - yiisoft/yii2-gii 2.0.3 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
    - yiisoft/yii2-gii 2.0.2 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
    - yiisoft/yii2-gii 2.0.1 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
    - yiisoft/yii2-gii 2.0.0 requires bower-asset/typeahead.js 0.10.* -> no matching package found.
    - Installation request for yiisoft/yii2-gii ~2.0.0 -> satisfiable by yiisoft/yii2-gii[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

can you help me?

Error: Failed to instantiate component or class "db"

When run ./vendor/bin/luya migrate get the error:

Yii Migration Tool (based on Yii v2.0.15.1)

Error: Failed to instantiate component or class "db". 

This is my env-local-db-php file

<?php

return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=127.0.0.1;dbname=mydb',
            // 'dsn' => 'mysql:host=localhost;dbname=DB_NAME;unix_socket=/Applications/MAMP/tmp/mysql/mysql.sock', // OSX MAMP
            // 'dsn' => 'mysql:host=localhost;dbname=DB_NAME;unix_socket=/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock', // OSX XAMPP
            'username' => 'root',
            'password' => 'root',
            'charset' => 'utf8',

            // in productive environments you can enable the schema caching
            // 'enableSchemaCache' => true,
            // 'schemaCacheDuration' => 43200,
        ]
    ]
];

Environment
PHP version

$ php -v
PHP 7.2.7-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jun 22 2018 08:45:49) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.7-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
    with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans

OS version

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04 LTS
Release:	18.04
Codename:	bionic

Database version

Server version: 10.2.16-MariaDB-1:10.2.16+maria~bionic-log mariadb.org binary distribution

Unable to create new version of a page in kickstarter

What steps will reproduce the problem?

composer create-project luyadev/luya-kickstarter
Go to admin -> Pages -> Homepage -> Add new version

Unable to add a new version with below information:
One or more fields are empty or have an invalid value.

What is the expected result?

This is what I get when I go with
composer create-project luyadev/luya-kickstarter-bootstrap4

image

What do you get instead? (A Screenshot can help us a lot!)

image

LUYA Check ouput (run this script and post the result: luyacheck.php)

1: [in_array('mod_rewrite', apache_get_modules())] true
2: [ini_get('short_open_tag')] ''
3: [ini_get('error_reporting')] '22527'
4: [phpversion()] '7.4.10'
5: [php_ini_loaded_file()] 'C:\xampp\php\php.ini'
6: [php_sapi_name()] 'apache2handler'
7: [isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : unknown] 'Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.4.10'

Additional infos

Q A
LUYA Version 1.0.26
PHP Version 7.4.10
Platform XAMPP
Operating system Windows

Provide default Docker env

The luya kickstarter should provide a dockerized default config ready to use for everyone. if not needed this can be removed after installing.

questions about project and installation

Hi,

  • is LUYA Open Source ? Under what license LUYA is released ?
  • What are minimum PHP and mysql version required to install LUYA ?
  • What PHP extensions are required to install LUYA ?

composer not stable

nadar@basil-NZXT:/var/www/testcreation$ composer create-project zephir/luya-kickstarter --dev

[InvalidArgumentException]                                             
Could not find package zephir/luya-kickstarter with stability stable.  

Exception on "php index.php import", "Setting unknown property: luya\admin\ngrest\plugins\Text::sortField"

What steps will reproduce the problem?

Just follow the guide: https://luya.io/guide/install-windows
Once import should be done:

E:\yii2\luya-kickstarter\public_html>php index.php import

What is the expected result?

Success

What do you get instead? (A Screenshot can help us a lot!)

Exception 'yii\base\UnknownPropertyException' with message 'Setting unknown property: luya\admin\ngrest\plugins\Text::sortField'

in E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\Component.php:209

Stack trace:
#0 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\BaseYii.php(546): yii\base\Component->__set('sortField', false)
#1 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\BaseObject.php(107): yii\BaseYii::configure(Object(luya\admin\ngrest\plugins\Text), Array)
#2 [internal function]: yii\base\BaseObject->__construct(Array)
#3 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\di\Container.php(384): ReflectionClass->newInstanceArgs(Array)
#4 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\di\Container.php(156): yii\di\Container->build('\luya\admin\ngr...', Array, Array)
#5 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\BaseYii.php(349): yii\di\Container->get('\luya\admin\ngr...', Array, Array)
#6 E:\yii2\luya-kickstarter\vendor\luyadev\luya-module-admin\src\ngrest\NgRest.php(79): yii\BaseYii::createObject(Array)
#7 E:\yii2\luya-kickstarter\vendor\luyadev\luya-module-admin\src\ngrest\base\NgRestEventBehavior.php(60): luya\admin\ngrest\NgRest::createPluginObject('\luya\admin\ngr...', 'translationName', 'Name', false, Array)
#8 E:\yii2\luya-kickstarter\vendor\luyadev\luya-module-admin\src\ngrest\base\NgRestEventBehavior.php(42): luya\admin\ngrest\base\NgRestEventBehavior::findPluginInstance('translationName', Array, 'cms_block')
#9 [internal function]: luya\admin\ngrest\base\NgRestEventBehavior->bindPluginEvents(Object(yii\base\Event))
#10 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\Component.php(627): call_user_func(Array, Object(yii\base\Event))
#11 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\db\BaseActiveRecord.php(933): yii\base\Component->trigger('init')
#12 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\BaseObject.php(109): yii\db\BaseActiveRecord->init()
#13 E:\yii2\luya-kickstarter\vendor\luyadev\luya-module-cms\src\admin\importers\BlockImporter.php(200): yii\base\BaseObject->__construct()
#14 E:\yii2\luya-kickstarter\vendor\luyadev\luya-module-cms\src\admin\importers\BlockImporter.php(40): luya\cms\admin\importers\BlockImporter->saveBlock('\luya\cms\front...')
#15 E:\yii2\luya-kickstarter\vendor\luyadev\luya-core\console\commands\ImportController.php(177): luya\cms\admin\importers\BlockImporter->run()
#16 [internal function]: luya\console\commands\ImportController->actionIndex()
#17 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)
#18 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#19 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\console\Controller.php(148): yii\base\Controller->runAction('', Array)
#20 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\Module.php(528): yii\console\Controller->runAction('', Array)
#21 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\console\Application.php(180): yii\base\Module->runAction('import', Array)
#22 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\console\Application.php(147): yii\console\Application->runAction('import', Array)
#23 E:\yii2\luya-kickstarter\vendor\yiisoft\yii2\base\Application.php(386): yii\console\Application->handleRequest(Object(yii\console\Request))
#24 E:\yii2\luya-kickstarter\vendor\luyadev\luya-core\base\Boot.php(250): yii\base\Application->run()
#25 E:\yii2\luya-kickstarter\vendor\luyadev\luya-core\base\Boot.php(205): luya\base\Boot->applicationConsole()
#26 E:\yii2\luya-kickstarter\public_html\index.php(8): luya\base\Boot->run()
#27 {main}

LUYA Check ouput (run this script and post the result: luyacheck.php)

E:\yii2\luya-kickstarter\public_html>php luyacheck.php
Did not work as I am not running Apache on my development machine.

Fatal error: Uncaught Error: Call to undefined function apache_get_modules() in E:\yii2\luya-kickstarter\public_html\luyacheck.php(22) : eval()'d code:1
Stack trace:
#0 E:\yii2\luya-kickstarter\public_html\luyacheck.php(22): eval()
#1 {main}
thrown in E:\yii2\luya-kickstarter\public_html\luyacheck.php(22) : eval()'d code on line 1

Additional infos

Q A
LUYA Version 1.0.18 (27. May 2019)
PHP Version PHP 7.2.4 (cli) (built: Mar 28 2018 04:27:01) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Platform None
Operating system Windows 10
DB MariaDB

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.