{"id":25497201,"url":"https://github.com/scottkoskoski/gardening-app","last_synced_at":"2026-04-14T15:32:20.201Z","repository":{"id":276879463,"uuid":"930604947","full_name":"scottkoskoski/gardening-app","owner":"scottkoskoski","description":"Web app for personalized gardening recommendations based on location, climate, and real-time weather data. Built with Flask, React, and SQLite/PostgreSQL.","archived":false,"fork":false,"pushed_at":"2026-04-01T22:30:56.000Z","size":455,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-02T09:38:01.802Z","etag":null,"topics":["flask","react","sqlite"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scottkoskoski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-10T22:47:27.000Z","updated_at":"2026-04-01T22:09:47.000Z","dependencies_parsed_at":"2025-05-19T11:37:28.418Z","dependency_job_id":"10414772-f8a1-441b-9fe9-eaef052440ab","html_url":"https://github.com/scottkoskoski/gardening-app","commit_stats":null,"previous_names":["scottkoskoski/gardening-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scottkoskoski/gardening-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottkoskoski%2Fgardening-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottkoskoski%2Fgardening-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottkoskoski%2Fgardening-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottkoskoski%2Fgardening-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottkoskoski","download_url":"https://codeload.github.com/scottkoskoski/gardening-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottkoskoski%2Fgardening-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31803261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","react","sqlite"],"created_at":"2025-02-19T01:18:46.243Z","updated_at":"2026-04-14T15:32:20.183Z","avatar_url":"https://github.com/scottkoskoski.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gardening App\n\n## Overview\n\nThe Gardening App is a full-stack web application that provides users with personalized gardening recommendations based on their geographic location, climate zone, and local weather patterns. Users can register, log in, and receive data-driven insights into optimal planting schedules and plant care.\n\n## Features\n\n-   **User Authentication**: Secure JWT-based authentication system.\n-   **Location-Based Recommendations**: Determines USDA Plant Hardiness Zone based on ZIP code.\n-   **Weather Integration**: Fetches real-time weather data using Open-Meteo API.\n-   **Plant Database**: Stores plant data from OpenFarm API.\n-   **Personalized Gardening Insights**: Users receive suggestions based on climate, season, and space constraints.\n-   **React Frontend with TypeScript**: A modern UI for an intuitive user experience.\n-   **Protected Routes**: Certain pages require authentication before access is granted.\n-   **Dynamic Navigation**: Navbar updates based on user login status.\n\n## Tech Stack\n\n### Backend\n\n-   **Flask** (Python)\n-   **Flask-SQLAlchemy** (ORM)\n-   **Flask-Migrate** (Database migrations)\n-   **Flask-JWT-Extended** (Authentication)\n\n### Frontend\n\n-   **React.js with TypeScript**\n-   **React Router** (Client-side navigation)\n-   **Vite** (Fast frontend development)\n-   **CSS Modules** (Scoped styling)\n\n### Database\n\n-   **SQLite** (Development database)\n-   **PostgreSQL** (Planned for production)\n\n### APIs Used\n\n-   **[USDA Plant Hardiness Zone API](https://phzmapi.org/)** – Determines planting zones.\n-   **[Open-Meteo](https://open-meteo.com/)** – Provides weather data.\n-   **[OpenFarm API](https://openfarm.cc/)** – Fetches plant information.\n\n## Project Structure\n\n```\n/gardening-app\n│── backend/\n│   │── app/\n│   │   │── models/  # Database models\n│   │   │── routes/  # API routes\n│   │   └── __init__.py  # App factory\n│   │── instance/  # SQLite database storage\n│   │── migrations/  # Database migrations\n│   │── scripts/  # Utility scripts\n│   │   └── fetch_openfarm_data.py  # Script to populate the database\n│   └── run.py  # Entry point\n│── frontend/\n│   │── src/  # React source code\n│   │   │── components/  # Reusable UI components\n│   │   │── pages/  # Page components\n│   │   │── services/  # API service calls\n│   │   │── styles/  # CSS Modules\n│   │── public/  # Static assets\n│   │── .env  # Environment variables, including VITE_API_BASE_URL\n│   │── package.json  # Project dependencies\n│   │── tsconfig.json  # TypeScript configuration\n│   └── vite.config.ts  # Vite configuration\n│── README.md\n```\n\n## Setup Instructions\n\n### **1. Clone the Repository**\n\n```bash\ngit clone \u003crepo-url\u003e\ncd gardening-app\n```\n\n---\n\n## **Setting Up the Backend**\n\n### **2. Set Up the Backend Environment**\n\n```bash\ncd backend\npython -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\npip install -r requirements.txt\n```\n\n### **3. Configure Flask**\n\n```bash\nexport FLASK_APP=app  # Windows: $env:FLASK_APP = \"app\"\nexport FLASK_ENV=development  # Windows: $env:FLASK_ENV = \"development\"\n```\n\n### **4. Initialize the Database**\n\n```bash\nflask db init\nflask db migrate -m \"Initial migration\"\nflask db upgrade\n```\n\n### **5. Fetch Plant Data from OpenFarm API**\n\n```bash\npython scripts/fetch_openfarm_data.py\n```\n\n### **6. Run the Backend**\n\n```bash\nflask run\n```\n\nThe backend should now be running at: [http://127.0.0.1:5000](http://127.0.0.1:5000)\n\n---\n\n## **Setting Up the Frontend**\n\n### **1. Install Dependencies**\n\n```bash\ncd frontend\nnpm install\n```\n\n### **2. Configure Environment Variables**\n\nCreate a `.env` file inside `frontend/` and define the API base URL:\n\n```env\nVITE_API_BASE_URL=http://127.0.0.1:5000\n```\n\n### **3. Run the Frontend**\n\n```bash\nnpm run dev\n```\n\nThe frontend should now be running at: [http://localhost:5173](http://localhost:5173)\n\n---\n\n## Future Enhancements\n\n-   **User Dashboard** – Display personalized gardening recommendations.\n-   **Session Management** – Improve JWT handling.\n-   **Improved UI/UX** – Enhance responsiveness and accessibility.\n-   **Additional APIs** – Integrate more data sources for advanced recommendations.\n-   **Improve form validation and user feedback** – Enhance error handling and provide better UI feedback for login and registration.\n\n## Next Steps\n\n-   Implement logout with session management.\n-   Continue improving UI and state management.\n\nThis updated `README.md` reflects the current state of the Gardening App and outlines future development goals.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottkoskoski%2Fgardening-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottkoskoski%2Fgardening-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottkoskoski%2Fgardening-app/lists"}