Setting up
The stack
Section titled “The stack”The stack is a Castor project with the shared Sylius app of the demo shops and
castor-api. In its castor.php, it:
-
requires
opencolibri/starter-sales-kit: itssylius:shop:*tasks and its extensions (a theme, a private storefront and an admin per shop) come with it, nothing to enable; -
exposes the tasks the admin calls through castor-api (
#[AsApi]): thesylius:shop:*andsylius:dataset:*tasks, and two thinsales-kit:theme:*tasks overopencolibri/starter-themes:Task Wraps sales-kit:theme:listThemeBundle::pickable()andHeaderLayout::all(), as{"themes": [...], "headers": {...}}sales-kit:theme:header <theme> --menu --searchcastor sylius:theme:header -
installs every theme next to each other, once and after each update of
opencolibri/starter-themes:Terminal window castor sylius:theme:setup all --target=theme-bundle
The admin
Section titled “The admin”The admin is a Symfony app with opencolibri/starter-sales-kit-bundle, next to the stack: it reaches castor-api over HTTP and
mounts the .castor/import/var, .castor/import/exports and .castor/import/datasets directories of the stack (the
last one read only).
composer require opencolibri/starter-sales-kit-bundle:^0.1@dev sylius/shadcn-admin-ui:^0.14@devThe README of opencolibri/starter-sales-kit-bundle gives the install steps (hooks, routes, firewall, styles, JavaScript), the configuration and the customization points (branding, colors, blocks of each page, grids).