Skip to content

chialab/bedita-frontend-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chialab/FrontendKit

The Frontend Kit is a BEdita 5 plugin designed to help in developing frontends. It covers objects routing and loading, views composition and auth-based staging sites.

Usage

You can install the plugin using Composer.

The recommended way to install Composer packages is:

$ composer require chialab/frontend-kit

Then, you have to load it as plugin in your Cake application:

src/Application.php

$this->addPlugin('Chialab/FrontendKit');

Please read the Wiki to correctly setup the frontend.

Testing

GitHub Actions tests codecov

Since some FrontendKit queries uses specific MySQL syntax, you must provide a DSN url for a test database before running tests:

$ export db_dsn='mysql://root:****@localhost/bedita4_frontendkit'

Then, you can launch tests using the test composer command:

$ composer run test

License

Chialab/FrontendKit is released under the MIT license.