Skip to main content

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

ScriptWhat it does
npm run devStart dev server on port 3000 with hot reload and backend proxy
npm run buildStandard production build to dist/
npm run build:zangoSingle-file build for Zango platform deployment
npm run previewPreview the production build locally