🧭 Cozeloop Frontend
English | 简体中文
This is a Monorepo managed by Rush.js.
🚀 Getting Started
_____________________________________
< Getting Started >
-------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||Environment requirements:
- Node.js 24+ (lts/krypton recommended)
- pnpm 10.27.0
- Rush 5.172.1
1. Install Node.js 24+
nvm install lts/krypton
nvm alias default lts/krypton # set default Node version
nvm use lts/krypton2. Checkout repository and change to frontend dir
# clone the repository
git clone git@github.com:coze-dev/coze-loop.git
# change current work dir
cd frontend3. Install required global dependencies
npm i -g pnpm@10.27.0 @microsoft/rush@5.172.14. Install/Update project dependencies
rush update🔨 Development
1. Run
Tip: using
rushxinstead ofpnpm runornpm run
The cozeloop project in apps/cozeloop is a React App, start development by running:
cd apps/cozeloop
rushx devOpen http://localhost:8090/ with your browser to see the page.
2. Build
The cozeloop project is built with Rsbuild, and the config file is apps/cozeloop/rsbuild.config.ts.
cd apps/cozeloop
rushx build3. Dependencies in workspace
As you can see, many dependencies listed in apps/cozeloop/package.json are versioned by workspace:*, which means they are maintained inner this repository.
Change the source code of workspace dependencies and the changes will work directly (sometimes re-run is required), since the cozeloop project depends the source codes rather than artifacts.
4. Update api by idl
Run the following command, and the idl files will be generated in packages/cozeloop/api-schema.
rush update-api