Skip to content

chialab/chialab.it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chialab.it & friends

Websites

Local project setup

Requirements

  • PHP >= 8.2
  • MySQL >= 8
  • Composer
  • Node.js
  • Yarn

Install dependencies

composer install
yarn install

Config

Copy the config/app_local.example.php file to config/app_local.php and set your local configuration.

cp config/app_local.example.php config/app_local.php

and make sure to update the Datasource section with your MySQL connection settings.

Then, ensure the following environment variables are set:

  • FRONTEND_PLUGIN - The frontend plugin to use (could be BEdita/API for API frontend or Chialab for websites frontends
  • THEME - The theme to use (could be Chialab for chialab.it or OpenSource for chialab.io)

You can set the environment variables in your virtual host, configuration:

SetEnv FRONTEND_PLUGIN Chialab
SetEnv THEME Chialab

or in the config/.env file:

export FRONTEND_PLUGIN="Chialab"
export THEME="Chialab"

Folder structure

  • chialab-design-company [required]
    • footer [required]
    • .....
  • chialab-open-source [required]
    • .....

Migrations

Run cake migrations to create or update the database schema:

composer migrate