Logo Lanfrica

johnpadeola-GitHu/PoultrySuite-Africa

Domain:

agriculture

Record type:

software
Creator:
joh
Host:
# PoultrySuite Africa A tablet-first farm management PWA for African poultry, hatchery, and feed mill operations, by AgoroX Technologies. ## ⚠️ Important — read before relying on this folder This is a **reconstructed** project scaffold. The dev environment used to build recent features was reset mid-session, and the original `package.json` / `vite.config.js` / `index.html` were lost. What you're looking at now: - **`src/`** — your real, current application code. Not reconstructed. - **`package.json`, `vite.config.js`, `index.html`, `.gitignore`** — REBUILT from scratch by inspecting what `src/` actually imports and expects. They should work, but they are NOT guaranteed to byte-for-byte match your original config (e.g. exact dependency versions, PWA icon paths). **Before treating this as your source of truth**, ideally diff it against your real project folder on your Surface (the one with `node_modules/` already installed) and confirm nothing real was lost. If your local folder is intact, prefer copying just the `src/` changes into it rather than replacing the whole project with this one. ## What's inside ``` src/ → application source (current, real) supabase/ → SQL migrations to run in Supabase SQL Editor package.json → reconstructed dependency list (React 18, Supabase JS, Vite) vite.config.js → reconstructed build config (React + PWA plugin) index.html → reconstructed HTML entry point .gitignore → excludes node_modules/, dist/, .env .env.example → documents required environment variables ``` ## First-time setup (if running this fresh) ```bash npm install cp .env.example .env.local # edit .env.local with your real Supabase + Paystack keys npm run dev ``` ## What's NEW in src/ (platform admin feature) - `src/App.jsx` — routes platform admins to a separate dashboard - `src/auth/AuthProvider.jsx` — adds isPlatformAdmin, viewMode, viewAsTenant() - `src/auth/authService.js` — checks platform admin status on login - `src …

Languages

Licenses