Minimalist website for agriculture use-cases:
- Agriculture-UseofIoTDevices (IoT)
- Drones in agriculture
- Management of water
- Distribution (farm to market)
- Backend: Flask
- Database: PostgreSQL (via SQLAlchemy ORM)
- Frontend: Server-rendered Jinja templates + modern minimalist CSS
- Install dependencies:
pip install -r requirements.txt
- Configure environment:
- Copy
.env.exampleto.env - Update
DATABASE_URLto point to your PostgreSQL database
- Copy
- Run:
python app.py
- Open:
http://localhost:5000
On startup, the app creates the inquiries table automatically (for first-time local use) when DATABASE_URL is set.
If you start the app without DATABASE_URL, the frontend pages still work, but demo requests are blocked until PostgreSQL is configured.
- The contact form stores inquiries in PostgreSQL.
- In the app code, it uses SQLAlchemy ORM (no handwritten raw SQL).