Sarvadnya-Exports

Sarvadnya Exports — Website

Premium Indian pomegranate export company website. This phase adds the full public site — Home, About, Products, Gallery, and Contact (with the buyer lead form wired to Firestore + WhatsApp) — plus the Firestore rules and Cloud Function behind it. The Admin Dashboard is the one remaining phase (see Roadmap).

Design system

Getting started

npm install
cp .env.example .env.local   # fill in Firebase config
npm run dev

Visit http://localhost:3000.

What’s included so far

Public site

Backend / Firebase

Roadmap (next phase)

  1. Admin portal — Google Sign-In restricted to ADMIN_ALLOWED_EMAILS, dashboard cards (total/today/unread leads, countries), lead table with search/filter/ pagination, lead detail modal (mark read, delete, open WhatsApp, send email), analytics charts (top countries, monthly leads, quantity requested).
  2. Polish — PDF company profile download, dark mode, i18n readiness, EmailJS email notification, Lighthouse pass (SEO/Performance/Accessibility/Best Practices > 95).
cd functions
firebase functions:config:set \
  whatsapp.token="YOUR_CLOUD_API_TOKEN" \
  whatsapp.phone_number_id="YOUR_PHONE_NUMBER_ID" \
  whatsapp.business_number="91XXXXXXXXXX"
npm run deploy

Deployment

npm install -g firebase-tools
firebase login
firebase init hosting   # select "Next.js" framework support if prompted
firebase deploy