Skip to content

๐ŸŒฟ 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

License

Notifications You must be signed in to change notification settings

XaXtric7/GreenCart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฟ 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

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

git clone https://github.com/XaXtric7/GreeenCart.git

2. Navigate to the Project Directory

cd greencart

3. Install and Verify pip

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)

USE project;
SELECT * FROM contributions;
SELECT * FROM purchases;

5. Install Required Python Packages

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

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


๐Ÿ“ฝ๏ธ PPT for Hackathon

๐Ÿ“ Download Presentation - Tech4Tomorrow_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 ๐Ÿ“
Feel free to use and modify with attribution.


๐Ÿ“ฌ Contact

Got questions or ideas? Reach out to us!

About

๐ŸŒฟ 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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published