Dev Setup
Prerequisites
- Node.js 18+ (CI uses Node 20)
- npm (included with Node.js)
- Git
Installation
bash
git clone https://github.com/XimilalaXiang/DeLive.git
cd DeLive
npm run install:allinstall:all runs npm install in three directories: root, frontend/, and server/.
INFO
The mcp/ directory has its own package.json but is not included in install:all. Install it separately if needed:
bash
cd mcp && npm installDevelopment
bash
npm run devThis starts:
- Vite dev server on port 5173 (hot reload for the React frontend)
- Electron main process (with the Volcengine proxy on port 23456)
The dev script uses concurrently + wait-on to ensure Vite is ready before launching Electron.
Standalone Proxy Debugging
bash
npm run dev:serverStarts only the standalone Volcengine proxy from server/src/index.ts. Useful for debugging the proxy independently.
Quality Checks
bash
npm run checkRuns three steps sequentially:
lint:frontend— ESLint onfrontend/src/**/*.{ts,tsx}test:frontend— Vitest test suitebuild— Full production build (icons + frontend + electron TypeScript)
Individual Commands
bash
npm run lint:frontend # ESLint only
npm run test:frontend # Vitest only
npm run build # Full build onlyEnvironment
| Variable | Where | Purpose |
|---|---|---|
NODE_ENV | Main process | development enables DevTools and relaxed CSP |
| Port 5173 | Vite dev server | Frontend hot reload |
| Port 23456 | Electron main | HTTP server (Volc proxy + API) |