A modern solar energy website (React + Tailwind + Framer Motion) with a small Node/Express backend for saving leads and editable settings.
- Node.js 18+ (recommended)
- npm 9+
From the project root:
npm install
npm run dev- Frontend: http://localhost:5173
- Backend: http://localhost:8080 (API)
npm run build
npm run startOpen the site and click Admin settings in the navbar/footer. By default settings are stored in:
- Backend:
backend/data/settings.json(authoritative) - Frontend caches settings in localStorage for fast UI (will sync)
To secure admin updates, set an admin token in backend/.env:
ADMIN_TOKEN=your-secret
Then in the UI Admin modal, enter the same token.
The calculator generates a WhatsApp message and opens WhatsApp Web/app for the admin number configured in settings.