Scaffold the React App
Run this inside your workspace directory (the folder that contains backend/, packages/, etc.):
npx @zango-core/create-zango-app frontend
This creates a frontend/ folder with the full Zango React app template.
:::tip Workspace location
Your workspace lives at <project_name>/workspaces/<app_name>/ inside your Zango project.
:::
Install dependencies
cd frontend
npm install
Copy the environment file
cp .env.example .env
Then edit .env — see Environment Configuration for what to set.
Available Scripts
| Script | What it does |
|---|---|
npm run dev | Start dev server on port 3000 with hot reload and backend proxy |
npm run build | Standard production build to dist/ |
npm run build:zango | Single-file build for Zango platform deployment |
npm run preview | Preview the production build locally |