git clone https://github.com/digitalrisedorset/ready ReactEdge
cd ReactEdgecurl https://mise.run | shActivate it (Bash):
echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc
source ~/.bashrcVerify:
mise --versionmise installThis installs the required Node.js and Python versions.
Make the helper scripts executable:
chmod u+x ./launcher/scripts/*.shInstall all project dependencies:
mise run platform-installcp .env.sample .env
mkdir -p workspace
cp -R workspace.sample/* workspace/Generate the local configuration:
mise run configureThe configuration wizard will create:
.envdeployment-orchestrator/.env.devwidgets/*/public/reactedge-runtime.json
For example:
mise run widget-dev -- uspor:
mise run widget-dev -- bannerChange to your Magento or Mage-OS installation directory:
cd /path/to/magentoUpdate composer.json:
"minimum-stability": "dev"Install the ReactEdge bridge:
composer require reactedge/widgetbridgelightEnable the module:
bin/magento module:enable ReactEdge_WidgetBridge
bin/magento setup:upgrade
bin/magento cache:flushCheck that the module is installed:
bin/magento module:status ReactEdge_WidgetBridgeInspect widget configuration:
bin/magento config:show reactedge/usp/enabled
bin/magento config:show reactedge/banner/enabled
bin/magento config:show reactedge/productgallery/enabled
bin/magento config:show reactedge/storefinder/enabled
bin/magento config:show reactedge/megamenu/enabled
bin/magento config:show reactedge/googlereviews/enabledConfigure Google integrations if required:
bin/magento config:set reactedge/google_maps/api_key YOUR_API_KEY
bin/magento config:set reactedge/google_maps/place_id YOUR_PLACE_IDEnable server-side rendering:
bin/magento config:set reactedge/widgets_ssr/enabled 1Enable the widgets you want to use:
bin/magento config:set reactedge/usp/enabled 1
bin/magento config:set reactedge/banner/enabled 1
bin/magento config:set reactedge/productgallery/enabled 1Flush the cache:
bin/magento cache:flushCopy the starter layout XML files into the active Magento theme and adjust widget placement as required.
Build and publish the widgets:
mise run widgets-deployWhen DOCKER_USED=1 in .env, widgets-deploy automatically configures Magento after deployment.
The deployment script will:
- configure the Google Maps API key
- configure the Google Place ID
- enable server-side rendering
- enable the selected widgets
- flush the Magento cache
The default implementation assumes a Docker development environment using the mageos_php container.
To disable automatic Magento configuration, set:
DOCKER_USED=0To scaffold a new widget with ChatGPT, start a fresh conversation and attach:
widget-spec.md- the shared
packages/widget-build/shared-resources/vite_projectfolder as a zip archive
Then use the following prompt:
Create a widget called widget01.
Follow widget-spec.md exactly.