{"id":25471466,"url":"https://github.com/xaxtric7/greencart","last_synced_at":"2025-09-13T08:31:21.861Z","repository":{"id":256581412,"uuid":"855820000","full_name":"XaXtric7/GreenCart","owner":"XaXtric7","description":"Greencart is a platform that enables the trading of surplus green energy between sellers and buyers. Using blockchain for secure transactions, it ensures a reliable and transparent energy exchange","archived":false,"fork":false,"pushed_at":"2025-02-13T19:33:48.000Z","size":831,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T10:21:46.795Z","etag":null,"topics":["html5-css3","javascript","python"],"latest_commit_sha":null,"homepage":"https://green-cart-pied.vercel.app","language":"HTML","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/XaXtric7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-09-11T14:06:52.000Z","updated_at":"2025-02-13T19:34:46.000Z","dependencies_parsed_at":"2024-09-11T22:28:39.981Z","dependency_job_id":"a74fa82a-1116-4f56-badc-4d441d92071e","html_url":"https://github.com/XaXtric7/GreenCart","commit_stats":null,"previous_names":["xaxtric7/greeencart","xaxtric7/greencart"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/XaXtric7/GreenCart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XaXtric7%2FGreenCart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XaXtric7%2FGreenCart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XaXtric7%2FGreenCart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XaXtric7%2FGreenCart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XaXtric7","download_url":"https://codeload.github.com/XaXtric7/GreenCart/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XaXtric7%2FGreenCart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274937774,"owners_count":25377358,"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","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"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":["html5-css3","javascript","python"],"created_at":"2025-02-18T09:39:44.287Z","updated_at":"2025-09-13T08:31:21.853Z","avatar_url":"https://github.com/XaXtric7.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌿 Greencart\n\n**Greencart** is a blockchain-powered platform that facilitates the **trading of surplus green energy** between sellers and buyers. It enables energy producers to sell excess clean energy, while buyers can securely purchase verified green energy through a transparent and decentralized system. A government agency handles **storage and delivery logistics** for efficient energy distribution. 🌍⚡\n\n---\n\n## 📚 Table of Contents\n\n- [📖 Overview](#-overview)\n- [✨ Features](#-features)\n- [🛠️ Technology Stack](#-technology-stack)\n- [📦 Installation](#-installation)\n- [🚀 Usage](#-usage)\n- [🌐 Site Preview](#-site-preview)\n- [📽️ PPT for Hackathon](#-ppt-for-hackathon)\n- [🤝 Contributing](#-contributing)\n- [📄 License](#-license)\n- [📬 Contact](#-contact)\n\n---\n\n## 📖 Overview\n\nGreencart empowers green energy producers to **monetize their surplus energy** and supports buyers in **directly accessing renewable energy**. Every transaction is secured using **blockchain technology**, ensuring **transparency** and **tamper-proof records**. Delivery and physical energy management are overseen by a **government agency**, maintaining regulatory compliance and trust.\n\n---\n\n## ✨ Features\n\n- 🧾 **Seller Platform**: Register as an energy producer and list surplus energy for sale.\n- 🛒 **Buyer Platform**: Browse listings and purchase available green energy.\n- 🔗 **Blockchain Integration**: Secure and immutable transaction records.\n- 🏢 **Government Agency Integration**: Manages logistics for energy storage and delivery.\n- 🗃️ **Data Storage**: All data is stored in an SQL database.\n- 💻 **User Interface**: Built with HTML, CSS, and JavaScript for a clean and intuitive experience.\n\n---\n\n## 🛠️ Technology Stack\n\n- 🐍 **Backend**: Python (handles logic, routing, and database ops)\n- 🧮 **Database**: MySQL / SQL (for user and transaction data)\n- 🔐 **Blockchain**: Ensures secure, traceable transactions\n- 🎨 **Frontend**: HTML, CSS, JavaScript\n- 🏢 **Government Role**: Oversees physical energy logistics and compliance\n\n---\n\n## 📦 Installation\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/XaXtric7/GreeenCart.git\n```\n\n### 2. Navigate to the Project Directory\n\n```bash\ncd greencart\n```\n\n### 3. Install and Verify `pip`\n\n```bash\npython -m ensurepip --upgrade\ncurl https://bootstrap.pypa.io/get-pip.py -o get-pip.py\npython get-pip.py\npip --version\n```\n\n### 4. SQL Commands (in MySQL shell)\n\n```sql\nUSE project;\nSELECT * FROM contributions;\nSELECT * FROM purchases;\n```\n\n### 5. Install Required Python Packages\n\n```bash\npip install Flask Flask-MySQLdb\npip install mysql-connector-python\npip install flask-cors\n```\n\n### 6. Set Up SQL Database\n\n- Create a new database (e.g., `project`) and configure your credentials in `app.py`.\n\n### 7. Run the Application\n\n```bash\npython app.py\n```\n\n---\n\n## 🚀 Usage\n\n1. 🧑‍🌾 **Sellers**: Register, list energy, set price.\n2. 🧑‍💼 **Buyers**: Browse listings, purchase energy.\n3. 🔒 **Blockchain**: Handles secure transactions.\n4. 🏗️ **Delivery**: Managed by the government agency post-transaction.\n\n---\n\n## 🌐 Site Preview\n\n![GreenCart gif](https://github.com/user-attachments/assets/917d066a-71f0-4fee-951a-56aa628a8160)\n\n---\n\n## 📽️ PPT for Hackathon\n\n📁 [Download Presentation - Tech4Tomorrow_hackathon.pptx](https://github.com/user-attachments/files/17082889/Tech4Tommorow_hackathon.pptx)  \n💫 _Includes morph transitions for smooth visuals._\n\n---\n\n## 🤝 Contributing\n\nWe welcome all contributions! 🛠️  \nFollow these steps:\n\n1. 🍴 Fork this repository\n2. 🌿 Create a new branch (`feature/your-feature-name`)\n3. ✅ Commit your changes\n4. 🚀 Push to your branch\n5. 🔁 Open a Pull Request\n\n---\n\n## 📄 License\n\nLicensed under the [MIT License](LICENSE) 📝  \nFeel free to use and modify with attribution.\n\n---\n\n## 📬 Contact\n\nGot questions or ideas? Reach out to us!\n\n- 👨‍💻 [Amish Mathur (amishmathur1)](https://github.com/amishmathur1)\n- 👨‍💻 [Ansh (PikachuGX)](https://github.com/PikachuGX)\n- 👨‍💻 [Sarthak Dharmik (XaXtric7)](https://github.com/XaXtric7)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxaxtric7%2Fgreencart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxaxtric7%2Fgreencart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxaxtric7%2Fgreencart/lists"}