{"id":23149647,"url":"https://github.com/thanaraklee/herbhub","last_synced_at":"2026-02-09T19:36:56.828Z","repository":{"id":268219463,"uuid":"892136898","full_name":"Thanaraklee/HerbHub","owner":"Thanaraklee","description":"Herb Hub Platform, developed for DSI314, is a web app for exploring, analyzing, and managing herbal knowledge. It integrates a knowledge graph, Streamlit dashboards, and database tools for efficient herbal data management and research.","archived":false,"fork":false,"pushed_at":"2024-12-18T07:08:46.000Z","size":11491,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T00:26:47.842Z","etag":null,"topics":["docker-compose","llm","minio","neo4j","openai","pipeline","python","scraping","streamlit","thai","thailand"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Thanaraklee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2024-11-21T15:15:25.000Z","updated_at":"2024-12-18T07:09:12.000Z","dependencies_parsed_at":"2024-12-15T10:21:25.956Z","dependency_job_id":"d050fa6e-97cf-4df8-af95-ed8b01b81280","html_url":"https://github.com/Thanaraklee/HerbHub","commit_stats":null,"previous_names":["thanaraklee/herbhub"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thanaraklee%2FHerbHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thanaraklee%2FHerbHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thanaraklee%2FHerbHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thanaraklee%2FHerbHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thanaraklee","download_url":"https://codeload.github.com/Thanaraklee/HerbHub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198406,"owners_count":20900078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker-compose","llm","minio","neo4j","openai","pipeline","python","scraping","streamlit","thai","thailand"],"created_at":"2024-12-17T18:14:42.733Z","updated_at":"2026-02-09T19:36:56.778Z","avatar_url":"https://github.com/Thanaraklee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Bandit](https://github.com/Thanaraklee/HerbHub/actions/workflows/main.yml/badge.svg)](https://github.com/Thanaraklee/HerbHub/actions/workflows/main.yml)\r\n[![Dependabot Updates](https://github.com/Thanaraklee/HerbHub/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/Thanaraklee/HerbHub/actions/workflows/dependabot/dependabot-updates)\r\n[![Check API Status](https://github.com/Thanaraklee/HerbHub/actions/workflows/checkstatus.yml/badge.svg)](https://github.com/Thanaraklee/HerbHub/actions/workflows/checkstatus.yml)\r\n\r\n# Herb Hub Platform\r\n## Overview\r\n**Herb Hub Platform** is a web-based application designed to facilitate the exploration, analysis, and management of herbal knowledge. The platform integrates various tools, including a knowledge graph, Streamlit dashboards, and database management systems, to provide users with a comprehensive solution for managing herbal data and research.\r\n\r\n## Features\r\n- **Streamlit Interface:** A user-friendly dashboard for visualizing and analyzing herbal data.\r\n- **Neo4j Integration:** A graph database to store and query relationships between herbs, compounds, and their effects.\r\n- **MinIO Storage:** A scalable object storage system for managing supplementary data.\r\n- **Dockerized Services:** Simplified deployment and scaling using Docker containers.\r\n\r\n## Project Structure (*Sample*)\r\n```bash\r\nHerbHub/\r\n├── backend/   # Handles scraping, transformation, loading, and database management\r\n│\r\n├── frontend/  # Hosts the Streamlit application and contains its configuration files\r\n│\r\n├── docker-compose.yml  # Docker Compose file for orchestrating services\r\n├── .env  # Environment variables file\r\n└── README.md  # Project documentation\r\n```\r\n## Prerequisites\r\nEnsure the following tools are installed:\r\n- [Docker](https://www.docker.com/)\r\n\r\n## Installation  \r\n\r\n1. **Clone the Repository**  \r\n   Clone the repository and navigate to the project directory:  \r\n   ```bash  \r\n   git clone https://github.com/your-repository/herb-hub.git  \r\n   cd herb-hub  \r\n   ```  \r\n\r\n2. **Set Up Environment Variables**  \r\n   - Create a `.env` file in the root directory by referencing the `example.env` file provided in the `frontend/` folder.  \r\n   - Make sure to update the API keys for OpenAI and other credentials as needed:  \r\n     ```bash\r\n     # Example for OpenAI\r\n     OPENAI_API_1=your_api_key_1\r\n     ```\r\n     Replace the placeholder values (`your_api_key_1`, etc.) with your actual API keys.  \r\n\r\n3. **Start the Required Services**  \r\n   Use the following command to build and start the Neo4j and MinIO containers:  \r\n   ```bash  \r\n   docker-compose up neo4j minio -d --build  \r\n   ```  \r\n\r\n4. **Run the Scraping and Loading Process**  \r\n   **Important:** To prevent clearing the database, ensure you comment out line 50 in the `master_pipe.py` file:  \r\n   ```python  \r\n   # neo4j_pipe.clear_database()  \r\n   ```  \r\n   Then, execute the following command to start the scraping and loading process (this may take approximately 1 hour):  \r\n   ```bash  \r\n   python backend/data_pipeline/pipeline/master_pipe.py  \r\n   ```  \r\n\r\n5. **Start Streamlit**  \r\n   Launch the Streamlit application using the following command:  \r\n   ```bash  \r\n   docker compose up streamlit -d  \r\n   ```  \r\n6. **Access the Platform**\r\n   - Streamlit Dashboard: Navigate to http://localhost:8503\r\n   - Neo4j Browser: Navigate to http://localhost:7474\r\n   - MinIO Console: Navigate to http://localhost:9001\r\n\r\n# Workflow\r\n\u003cp align=\"center\"\u003e\r\n  \u003cimg src=\"https://github.com/Thanaraklee/HerbHub/blob/main/imgs/workflow.png\" alt=\"Workflow\" style=\"width:1000px;\" /\u003e\r\n\u003c/p\u003e\r\n\r\n# Example\r\n\u003cp align=\"center\"\u003e\r\n  \u003cimg src=\"https://github.com/Thanaraklee/HerbHub/blob/main/imgs/example_1.png\" alt=\"Workflow\" style=\"width:1000px;\" /\u003e\r\n  \u003cimg src=\"https://github.com/Thanaraklee/HerbHub/blob/main/imgs/example_2.png\" alt=\"Workflow\" style=\"width:1000px;\" /\u003e\r\n\u003c/p\u003e\r\n\r\n\r\n# References\r\n- Herb images: [GBIF](https://www.gbif.org)  \r\n- Species names, synonyms, and taxonomy: [WFO Plant List](https://www.wfoplantlist.org)  \r\n- Plant parts and medicinal uses: [Kew Science - Medicinal Plant Names Services](https://mpns.science.kew.org)  \r\n- Plant parts and chemical properties: [USDA Phytochemical Database](https://phytochem.nal.usda.gov)  \r\n- Common names, local names, clinical data and pharmacological data: [CosmeHerb Database](https://cosmeherb.nbt.or.th)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanaraklee%2Fherbhub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthanaraklee%2Fherbhub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanaraklee%2Fherbhub/lists"}