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
Install / Use
/learn @XaXtric7/GreenCartREADME
๐ฟ 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
- โจ Features
- ๐ ๏ธ Technology Stack
- ๐ฆ Installation
- ๐ Usage
- ๐ Site Preview
- ๐ฝ๏ธ PPT for Hackathon
- ๐ค Contributing
- ๐ License
- ๐ฌ 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
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 inapp.py.
7. Run the Application
python app.py
๐ Usage
- ๐งโ๐พ Sellers: Register, list energy, set price.
- ๐งโ๐ผ Buyers: Browse listings, purchase energy.
- ๐ Blockchain: Handles secure transactions.
- ๐๏ธ Delivery: Managed by the government agency post-transaction.
๐ Site Preview
๐ฝ๏ธ PPT for Hackathon
๐ Download Presentation - Tech4Tomorrow_hackathon.pptx
๐ซ Includes morph transitions for smooth visuals.
๐ค Contributing
We welcome all contributions! ๐ ๏ธ
Follow these steps:
- ๐ด Fork this repository
- ๐ฟ Create a new branch (
feature/your-feature-name) - โ Commit your changes
- ๐ Push to your branch
- ๐ 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!
- ๐จโ๐ป Amish Mathur (amishmathur1)
- ๐จโ๐ป Ansh (PikachuGX)
- ๐จโ๐ป Sarthak Dharmik (XaXtric7)
