A mobile-first, full-stack agricultural data entry application designed specifically for large-scale farm management. It tracks plant health, fertilizer usage, and disease distribution using a sleek dark-mode compatible UI and robust analytics.
- Backend: Python 3, Flask
- Frontend: HTMX, TailwindCSS, Plotly.js
- Database: Supabase (PostgreSQL)
- Create a free account at Supabase.
- Start a new project and go to the SQL Editor.
- Copy the contents of
schema.sqland run it to create your tables.
- Clone this repository to your local machine.
- Rename
.env.exampleto.env. - Fill in your Supabase Project URL and Anon Key.
SUPABASE_URL=https://your-project-id.supabase.co
SUPABASE_KEY=your-anon-keyOpen your terminal in the project directory and run:
# Create a virtual environment (Optional but recommended)
python3 -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Initialize your farm with 30 plots and 27,000 plants
python seed.pypython app.pyVisit http://127.0.0.1:5000 in your browser.
FarmDesk is a Progressive Web App (PWA). When accessed on a mobile device, you can use your browser's "Add to Home Screen" option to install it as a native-feeling app!
This app is ready to deploy to Vercel instantly.
- Create an account at Vercel and link your GitHub.
- Import this repository.
- In the Vercel deployment settings, add your
SUPABASE_URLandSUPABASE_KEYas Environment Variables. - Click Deploy. Vercel will automatically use the
vercel.jsonconfiguration to serve the Flask app!