An open API service indexing awesome lists of open source software.

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

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

![GreenCart gif](https://github.com/user-attachments/assets/917d066a-71f0-4fee-951a-56aa628a8160)

---

## ๐Ÿ“ฝ๏ธ 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)