921 B
921 B
CRM Frontend
React + TypeScript + Vite frontend for the CRM. See the root README.md for full setup, build, security, and manual review notes.
Quick Start
npm install
copy .env.example .env
npm run dev
Default local frontend env:
VITE_BACKEND_URL=http://127.0.0.1:8800
VITE_FRONTEND_HOST=0.0.0.0
VITE_FRONTEND_PORT=5173
The Vite dev server reads host and port from VITE_FRONTEND_HOST and VITE_FRONTEND_PORT. API and media URLs read VITE_BACKEND_URL; keep it aligned with the Laravel backend URL.
Build with:
npm run build
Verify dependencies with:
npm install
npm ls --depth=0
Known build note: Vite may warn that src/api/leads.ts is dynamically imported and statically imported. The build still succeeds; the warning only means that module cannot be split into a separate lazy chunk.
Do not commit .env, cookie files, node_modules, or dist.