# FrontX: run Shell + MFE Tested environment: Node.js 25.1.0, npm 11.6.2. Commands use a macOS/Linux shell. Upstream CI targets Node.js 24.14+; that minimum has not been verified locally. Verified on 6 October 2026, macOS, Node.js 25.1.0, npm 11.6.2. CLI: 0.3.0-alpha.7. Template revision: 3b6cddb2a700ae76bc5e1991204e127de566d597. Source: https://github.com/constructorfabric/gears-frontx-templates/tree/3b6cddb2a700ae76bc5e1991204e127de566d597 Use a new folder and the same terminal for every step. Free localhost ports 5173, 3001, 3099, 3201 and 3202. No global CLI installation is needed. ## 1. Create a clean workspace Run these steps in the same terminal. Keep the template inventory local to this workspace; an existing project is not required. ```sh mkdir frontx-start && cd frontx-start export FRONTX_INVENTORY_ROOT="$PWD/.frontx-inventory" ``` Expected: A new workspace with its own template inventory. No global CLI installation. ## 2. Install the two templates Both templates come from the same pinned source revision. The CLI downloads them into the inventory. ```sh npm exec --yes --package=@gears-frontx/cli@0.3.0-alpha.7 -- frontx install \ github:constructorfabric/gears-frontx-templates//template-shell@3b6cddb2a700ae76bc5e1991204e127de566d597 npm exec --yes --package=@gears-frontx/cli@0.3.0-alpha.7 -- frontx install \ github:constructorfabric/gears-frontx-templates//template-mfe@3b6cddb2a700ae76bc5e1991204e127de566d597 ``` Expected: The CLI reports that frontx-template-shell and frontx-template-mfe are installed. ## 3. Assemble Shell + MFE Seed the host first, then add the microfrontend workspace. These commands use the full template identities, not their directory names. ```sh npm exec --yes --package=@gears-frontx/cli@0.3.0-alpha.7 -- frontx seed \ @gears-frontx/frontx-template-shell ./my-app npm exec --yes --package=@gears-frontx/cli@0.3.0-alpha.7 -- frontx add \ @gears-frontx/frontx-template-mfe ./my-app ``` Expected: The project appears in my-app. Its .frontx directory records both applied templates. ## 4. Run the included examples Install the combined workspace, then start the host and its example microfrontends. Keep this terminal running. ```sh cd my-app npm install FRONTX_INCLUDE_TEMPLATE_EXAMPLES=1 npm run dev:all ``` Expected: Open http://localhost:5173. Example screens should appear in the host menu. Choose Hello World in the menu: expect “Hello World from MFE”. Choose Blank Home to load another module. Without FRONTX_INCLUDE_TEMPLATE_EXAMPLES=1, template examples are deliberately hidden. Stop servers with Ctrl+C. ## Next step Make your first change: /docs/first-change.md — edit the existing Blank Home English title, then rebuild and reopen it. ## Verification boundary Template install, seed, add, dependency installation, build, type-check and the Hello World / Blank Home browser path passed, including Back and reload. This is a development example, not a production-readiness claim. Its dependency tree reported 23 npm audit findings (1 low, 11 moderate, 11 high); upstream dependencies were not changed. Run npm audit and review affected packages before adopting this example. Production deployment, authentication, upgrades, Windows and the minimum Node.js version were not verified locally. AI Kit setup is a separate, untested path. The templates README (https://github.com/constructorfabric/gears-frontx-templates/blob/3b6cddb2a700ae76bc5e1991204e127de566d597/README.md#consuming-a-template) shows “seed shell --source …” and “add mfe --source …”, which differ from CLI 0.3.0-alpha.7; this guide follows the published CLI help and the commands actually exercised. After adding MFE, npm install updates the Shell-only lockfile with the new workspace.