An AI-powered weather and market forecasting application designed to empower farmers and agribusiness stakeholders in Africa. It provides:
- Real-time weather predictions
- Crop market price forecasting
- AI-driven credit scoring
- Blockchain-enabled smart contracts
- Emergency alerts and climate resilience insights
Built with a full-stack architecture, the app combines AI models, secure APIs, cloud deployment, and a mobile-first frontend to deliver accurate, scalable, and accessible solutions.
| Layer | Technology Used |
|---|---|
| Backend | Python, Flask, FastAPI |
| AI Models | TensorFlow, Scikit-learn, Pandas, NumPy |
| Frontend | React Native / Flutter / Kotlin (Android) |
| Database | PostgreSQL, MongoDB |
| Blockchain | Solidity, Ethereum, Hyperledger |
| Cloud | AWS / Google Cloud / Azure |
All documentation lives in the docs/ directory.
docs/setup.mdβ Step-by-step environment setupdocs/api-spec.mdβ API endpoints and response formatsdocs/ai-models.mdβ AI model architecture and training detailsdocs/blockchain-integration.mdβ Blockchain structure and logicdocs/contributing.mdβ Contribution best practices
git clone https://github.com/joeythe33rd/weather-ai-app.git
cd weather-ai-apppip install -r requirements.txtCreate a .env file in the root directory (if not already present) and set the port for the Flask server:
PORT=4000
You can change the port number as needed. Suggested ports include 3000, 8000, 8080, 5000, 4000, 7000, 9000, and 8888. Ensure the port is above 1024 and not used by other services.
bash run_flask.shcd frontend
npm install
npm startEnsure PostgreSQL is installed and run:
CREATE DATABASE weather_db;Then:
python setup_db.pyWe welcome contributors to improve the project!
- Fork the repository.
- Create a feature branch:
git checkout -b feature-your-feature-name3.Make your changes and commit:
git commit -m "Add: Your detailed message"4.Push and open a pull request:
git push origin feature-your-feature-name- Follow PEP8 standards (Python)
- Write or update tests
- Add documentation for new features
- Link any related issues in your PR
To patch bugs or security vulnerabilities:
- Open an issue with a detailed description.
- Reference issue number in commits (e.g.,
Fixes #45) - Use semantic versioning:
- Patch:
v1.0.1 - Minor Feature:
v1.1.0 - Major Release:
v2.0.0
- Patch:
| Resource | Link |
|---|---|
| OpenWeatherMap API | openweathermap.org |
| NOAA Climate Data | ncei.noaa.gov |
| FAO Price Index | fao.org |
| Kenya Met Department | meteo.go.ke |
| TensorFlow | tensorflow.org |
| Solidity | soliditylang.org |
| React Native | reactnative.dev |
| PostgreSQL | postgresql.org |
This project is licensed under the MIT License.
See the LICENSE file for details.
Special thanks to:
- Kenyan farmers and agribusiness cooperatives
- Open-source developers and AI researchers
- Institutions contributing open data (NOAA, FAO, KenyaMet)
- Lead Developer: Joseph Ndungu
- Email: [email protected]
- GitHub: joeythe33rd
