chialab/bedita-app-template

A template for BEdita websites and apps.

v5.1.0 2023-07-11 07:44 UTC

This package is auto-updated.

Last update: 2024-04-09 14:00:51 UTC


README

A skeleton for creating applications with BEdita 5.x.

The framework source code can be found here: bedita/bedita.

Installation

  1. Download Composer or update composer self-update.
  2. Run composer create-project --prefer-dist chialab/bedita-app-template [app_name].

If Composer is installed globally, run

composer create-project --prefer-dist "chialab/bedita-app-template:^5.0"

In case you want to use a custom app dir name (e.g. /myapp/):

composer create-project --prefer-dist "chialab/bedita-app-template:^5.0" myapp

You can now either use your machine's webserver to view the default home page, or start up the built-in webserver with:

bin/cake server -p 8765

Then visit http://localhost:8765 to see the welcome page.

Update

Since this skeleton is a starting point for your application and various files would have been modified as per your needs, there isn't a way to provide automated upgrades, so you have to do any updates manually.

Configuration

Read and edit config/app.php and setup the 'Datasources' and any other configuration relevant for your application.

Testing

GitHub Actions tests codecov

Test database configuration is in app_local.php. You can override the database url using the DATABASE_TEST_URL environment variable:

export DATABASE_TEST_URL='mysql://root:****@localhost/bedita4_app'

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

composer run test