CRM/frontend
مسعود نیک زاد e1a86ead41 update project 2026-07-25 15:18:46 +03:30
..
e2e update project 2026-07-25 15:18:46 +03:30
public first commit 2026-07-11 12:23:45 +03:30
src update project 2026-07-25 15:18:46 +03:30
.env.example first commit 2026-07-11 12:23:45 +03:30
.gitignore first commit 2026-07-11 12:23:45 +03:30
.oxlintrc.json first commit 2026-07-11 12:23:45 +03:30
README.md first commit 2026-07-11 12:23:45 +03:30
index.html first commit 2026-07-11 12:23:45 +03:30
package-lock.json update project 2026-07-25 15:18:46 +03:30
package.json update project 2026-07-25 15:18:46 +03:30
playwright.config.ts update project 2026-07-25 15:18:46 +03:30
tsconfig.app.json first commit 2026-07-11 12:23:45 +03:30
tsconfig.json first commit 2026-07-11 12:23:45 +03:30
tsconfig.node.json first commit 2026-07-11 12:23:45 +03:30
vite.config.ts update project 2026-07-25 15:18:46 +03:30

README.md

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.