https://github.com/xaxtric7/greencart
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
https://github.com/xaxtric7/greencart
html5-css3 javascript python
Last synced: 9 months ago
JSON representation
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
- Host: GitHub
- URL: https://github.com/xaxtric7/greencart
- Owner: XaXtric7
- License: mit
- Created: 2024-09-11T14:06:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-13T19:33:48.000Z (over 1 year ago)
- Last Synced: 2025-04-09T10:21:46.795Z (about 1 year ago)
- Topics: html5-css3, javascript, python
- Language: HTML
- Homepage: https://green-cart-pied.vercel.app
- Size: 812 KB
- Stars: 16
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ฟ Greencart
**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. ๐โก
---
## ๐ Table of Contents
- [๐ Overview](#-overview)
- [โจ Features](#-features)
- [๐ ๏ธ Technology Stack](#-technology-stack)
- [๐ฆ Installation](#-installation)
- [๐ Usage](#-usage)
- [๐ Site Preview](#-site-preview)
- [๐ฝ๏ธ PPT for Hackathon](#-ppt-for-hackathon)
- [๐ค Contributing](#-contributing)
- [๐ License](#-license)
- [๐ฌ Contact](#-contact)
---
## ๐ Overview
Greencart 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.
---
## โจ Features
- ๐งพ **Seller Platform**: Register as an energy producer and list surplus energy for sale.
- ๐ **Buyer Platform**: Browse listings and purchase available green energy.
- ๐ **Blockchain Integration**: Secure and immutable transaction records.
- ๐ข **Government Agency Integration**: Manages logistics for energy storage and delivery.
- ๐๏ธ **Data Storage**: All data is stored in an SQL database.
- ๐ป **User Interface**: Built with HTML, CSS, and JavaScript for a clean and intuitive experience.
---
## ๐ ๏ธ Technology Stack
- ๐ **Backend**: Python (handles logic, routing, and database ops)
- ๐งฎ **Database**: MySQL / SQL (for user and transaction data)
- ๐ **Blockchain**: Ensures secure, traceable transactions
- ๐จ **Frontend**: HTML, CSS, JavaScript
- ๐ข **Government Role**: Oversees physical energy logistics and compliance
---
## ๐ฆ Installation
### 1. Clone the Repository
```bash
git clone https://github.com/XaXtric7/GreeenCart.git
```
### 2. Navigate to the Project Directory
```bash
cd greencart
```
### 3. Install and Verify `pip`
```bash
python -m ensurepip --upgrade
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip --version
```
### 4. SQL Commands (in MySQL shell)
```sql
USE project;
SELECT * FROM contributions;
SELECT * FROM purchases;
```
### 5. Install Required Python Packages
```bash
pip install Flask Flask-MySQLdb
pip install mysql-connector-python
pip install flask-cors
```
### 6. Set Up SQL Database
- Create a new database (e.g., `project`) and configure your credentials in `app.py`.
### 7. Run the Application
```bash
python app.py
```
---
## ๐ Usage
1. ๐งโ๐พ **Sellers**: Register, list energy, set price.
2. ๐งโ๐ผ **Buyers**: Browse listings, purchase energy.
3. ๐ **Blockchain**: Handles secure transactions.
4. ๐๏ธ **Delivery**: Managed by the government agency post-transaction.
---
## ๐ Site Preview

---
## ๐ฝ๏ธ PPT for Hackathon
๐ [Download Presentation - Tech4Tomorrow_hackathon.pptx](https://github.com/user-attachments/files/17082889/Tech4Tommorow_hackathon.pptx)
๐ซ _Includes morph transitions for smooth visuals._
---
## ๐ค Contributing
We welcome all contributions! ๐ ๏ธ
Follow these steps:
1. ๐ด Fork this repository
2. ๐ฟ Create a new branch (`feature/your-feature-name`)
3. โ
Commit your changes
4. ๐ Push to your branch
5. ๐ Open a Pull Request
---
## ๐ License
Licensed under the [MIT License](LICENSE) ๐
Feel free to use and modify with attribution.
---
## ๐ฌ Contact
Got questions or ideas? Reach out to us!
- ๐จโ๐ป [Amish Mathur (amishmathur1)](https://github.com/amishmathur1)
- ๐จโ๐ป [Ansh (PikachuGX)](https://github.com/PikachuGX)
- ๐จโ๐ป [Sarthak Dharmik (XaXtric7)](https://github.com/XaXtric7)