Smart Livestock Management for Rural India — role-based dashboards for farmers, panchayat/admin, and vets. Built with React + Vite + TypeScript + Supabase.
- Role-based auth and routing: Farmer, Panchayat, Vet
- Farmer dashboard: animals list, vaccination due tracking, reminders, vet consultation requests
- Register animals with QR code generation and vaccination schedule
- Animal profile page for per-animal details
- Vite + React + TypeScript
- Tailwind CSS + shadcn/ui
- Supabase (Auth + Postgres)
- Vitest (tests)
- Node.js 18+ (recommended)
- npm
npm installCopy the template and fill in values:
cp .env.example .envRequired environment variables:
VITE_SUPABASE_URLVITE_SUPABASE_PUBLISHABLE_KEY(this is your Supabase anon/publishable key)
npm run devOpen the printed local URL (usually http://localhost:5173).
npm run dev— start dev servernpm run build— production buildnpm run preview— preview production build locallynpm run lint— ESLintnpm test— run tests (Vitest)
This repo includes Supabase migrations under supabase/migrations/.
Typical workflow:
- Create a Supabase project
- Apply migrations using the Supabase CLI (optional for hackathon demos)
- Ensure tables exist:
profiles,animals,reminders,consultations
You can deploy as a static SPA to Netlify/Vercel.
- Build command:
npm run build - Output directory:
dist - Add the same environment variables in your hosting provider settings.
Add a license if your hackathon requires one.