React + Rspack + Turborepo

Prerequisites

If you don't have nvm to manage your node version yet, head to the official nvm guide to install it.

nvm use 20

To get started with Zephyr and Turborepo, zephyr provides a fully functioning starter template. Simply run the following command:

Terminal
npx create-turbo@latest --example https://github.com/ZephyrCloudIO/zephyr-examples/tree/main/examples/turbo-rspack-mf

This will generate a monorepo with 3 applications, 1 host app and 2 remote apps. The project has routing built in.

Git

Zephyr requires git, the next step should be adding git in whatever way you normally do

Terminal
git init
Terminal
git add .
Terminal
git commit -m "initial commit"

Then run:

Terminal
pnpm build

Turborepo allows us to create task dependencies so the remote applications will build before the host application. Once all the builds are finished, you should see a URL in your terminal to your deployed host app.

Build Hanging?

We have noticed the the host application will sometimes hang on the initial build. Please kill the process and restart it.