# 🌾 Okene Centralized Market Price Information System (CMPIS)
A dynamic, role-based Information Management System designed to eliminate market information asymmetry for agricultural workers in Okene Local Government Area. This platform empowers local farmers and traders with real-time commodity pricing, historical trend analytics, and direct peer-to-peer communication.
## 🚀 Key Features
* **Strict Role-Based Access Control (RBAC):** Distinct dashboards and permissions for **Farmers** (Data Consumers), **Traders** (Data Contributors), and **Administrators** (System Controllers).
* **Real-Time Data Visualization:** Integrates Chart.js to map historical price fluctuations based on specific crops and market locations, aiding predictive decision-making.
* **Peer-to-Peer Messaging System:** A custom-built, in-app chat engine featuring instant search, unread message indicators, and active conversation tracking.
* **Trust & Identity Module:** Public trader profiles featuring verified user roles, profile pictures, automated trust ratings (out of 5.0), and direct phone/WhatsApp links.
* **Dynamic Database Management:** Sequential data rendering and dynamic category/crop registration ensuring the UI remains pristine regardless of backend data deletion.
* **Automated PDF Reporting:** Dedicated print-styled CSS algorithms that strip the UI to generate clean, tabular system activity reports.
## 🛠️ Technology Stack
* **Backend:** PHP 8.2 (Vanilla)
* **Database:** MySQL / MariaDB (Relational schema with enforced foreign key constraints)
* **Frontend:** HTML5, Tailwind CSS (via CDN)
* **Scripting & Analytics:** Vanilla JavaScript, Chart.js API
## đź“‹ Installation & Local Setup
To run this project locally, you will need a local server environment like **XAMPP** or **WAMP**.
1. **Clone the Repository**
```bash
git clone
github.com
2. **Move to Server Directory**
Move the cloned cmpis folder into your local server's root directory (e.g., C:\x …