{"id":51533313,"url":"https://github.com/nurulashraf/community-app","last_synced_at":"2026-07-09T05:30:52.561Z","repository":{"id":367321043,"uuid":"1273385657","full_name":"nurulashraf/community-app","owner":"nurulashraf","description":"A community issue reporting app built with Streamlit and Google Gemini AI, with persistent MySQL storage and AI-generated action plans.","archived":false,"fork":false,"pushed_at":"2026-06-25T12:49:30.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-25T14:20:50.318Z","etag":null,"topics":["community-app","gemini-ai","mysql","python","streamlit","web-application"],"latest_commit_sha":null,"homepage":"","language":"Python","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/nurulashraf.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":"2026-06-18T13:24:17.000Z","updated_at":"2026-06-25T12:49:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nurulashraf/community-app","commit_stats":null,"previous_names":["nurulashraf/community-app"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/nurulashraf/community-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurulashraf%2Fcommunity-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurulashraf%2Fcommunity-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurulashraf%2Fcommunity-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurulashraf%2Fcommunity-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nurulashraf","download_url":"https://codeload.github.com/nurulashraf/community-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurulashraf%2Fcommunity-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35288805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-09T02:00:07.329Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["community-app","gemini-ai","mysql","python","streamlit","web-application"],"created_at":"2026-07-09T05:30:52.007Z","updated_at":"2026-07-09T05:30:52.553Z","avatar_url":"https://github.com/nurulashraf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Community Action Hub\n\nCommunity Action Hub is a web application that enables residents to report local issues and receive structured, AI-generated action plans. Built with Streamlit and powered by Google Gemini, the application stores all submissions persistently in a MySQL database and displays them on a shared neighbourhood action board.\n\n---\n\n## Table of Contents\n\n- [Features](#features)\n- [Tech Stack](#tech-stack)\n- [Prerequisites](#prerequisites)\n- [Getting Started](#getting-started)\n- [Project Structure](#project-structure)\n- [Database Schema](#database-schema)\n- [License](#license)\n\n---\n\n## Features\n\n- Submit community issues with a title, category, and detailed description\n- AI-generated action plans using Google Gemini 2.5 Flash\n- Persistent issue storage via a local MySQL database\n- Neighbourhood Action Board displaying all previously reported issues in reverse chronological order\n\n---\n\n## Tech Stack\n\n| Layer    | Technology                        |\n|----------|-----------------------------------|\n| Frontend | Streamlit                         |\n| AI       | Google Gemini 2.5 Flash           |\n| Database | MySQL                             |\n| Language | Python 3.8+                       |\n\n---\n\n## Prerequisites\n\n- Python 3.8 or higher\n- MySQL Server running on localhost\n- A Google AI Studio API key — obtain one at https://aistudio.google.com/api-keys\n\n---\n\n## Getting Started\n\n**1. Clone the repository**\n\n```bash\ngit clone https://github.com/nurulashraf/community-app.git\ncd community-app\n```\n\n**2. Install dependencies**\n\n```bash\npip install -r requirements.txt\n```\n\n**3. Configure the database connection**\n\nThe application connects to MySQL on `localhost` using the `root` account with no password by default. If your MySQL instance uses different credentials, update the connection settings in `app.py`:\n\n```python\nmydb = mysql.connector.connect(\n    host=\"localhost\",\n    user=\"root\",\n    password=\"your_password_here\"\n)\n```\n\nThe application will automatically create the `community_issues` database and `issues` table on first run.\n\n**4. Run the application**\n\n```bash\nstreamlit run app.py\n```\n\nThe application will be accessible at `http://localhost:8501`.\n\n**5. Configure your API key**\n\nEnter your Google AI Studio API key in the sidebar to enable AI-generated action plans.\n\n---\n\n## Project Structure\n\n```\ncommunity-app/\n├── app.py              # Main Streamlit application\n├── test_db.py          # MySQL connection test script\n├── requirements.txt    # Python dependencies\n└── README.md           # Project documentation\n```\n\n---\n\n## Database Schema\n\n```sql\nCREATE TABLE issues (\n    id          INT AUTO_INCREMENT PRIMARY KEY,\n    title       VARCHAR(255) NOT NULL,\n    category    VARCHAR(100) NOT NULL,\n    description TEXT        NOT NULL,\n    action_plan TEXT,\n    timestamp   TIMESTAMP   DEFAULT CURRENT_TIMESTAMP\n);\n```\n\n---\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurulashraf%2Fcommunity-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnurulashraf%2Fcommunity-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurulashraf%2Fcommunity-app/lists"}