π± GreenSwap β Sustainable Second-Hand Marketplace
GreenSwap is a web-based platform that promotes sustainability by enabling students and community members to buy, sell, or donate second-hand items. By fostering a circular economy, GreenSwap helps reduce waste, save money, and encourage eco-friendly habits.
π‘ Problem Statement
Today, many usable items like books, clothes, electronics, and furniture are discarded prematurely. Students and local communities struggle to access affordable resources, leading to unnecessary expenses and a larger carbon footprint. GreenSwap addresses this challenge by creating a trusted community-driven marketplace where items are reused, resold, or donated.
π Features
Marketplace: Browse, buy, and sell second-hand items.
Eco-Points System: Earn rewards for sustainable transactions.
User Profiles: Track personal eco-impact and transaction history.
Item Management: Easily add or remove items.
Verified Community: Focused on safety and trust, especially for students.
π Tech Stack
Backend: Python, Flask, Flask-CORS
Frontend: HTML, CSS, JavaScript, Tailwind CSS
API: RESTful endpoints for user management and item listings
π Project Structure GreenSwap/ βββ backend/ β βββ app.py # Flask backend server β βββ requirements.txt # Python dependencies βββ templates/ β βββ index.html # Home page β βββ register.html # User registration page β βββ profile.html # User profile page β βββ marketplace.html # Marketplace page β βββ add-item.html # Add item page βββ static/ β βββ css/ # Custom styles (optional) βββ README.md # Project documentation
β‘ Installation
Clone the repository
git clone https://github.com/yourusername/GreenSwap.git cd GreenSwap/backend
Create a virtual environment
python -m venv venv source venv/bin/activate # Linux/Mac venv\Scripts\activate # Windows
Install dependencies
pip install -r requirements.txt
Run the server
python app.py
Open http://127.0.0.1:5000 in your browser to view the app.
π API Endpoints
POST /api/register β Register a new user
GET /api/user/ β Retrieve user profile and eco-points
GET /api/items β List all available items
π± How It Promotes Sustainability
Reduces Waste: Items get reused instead of being thrown away.
Saves Money: Affordable alternatives for students and communities.
Encourages Responsible Behavior: Gamified eco-points reward sustainable actions.
Community Engagement: Builds trust and collaboration in verified local communities.
π Future Enhancements
Real-time chat between buyers and sellers
Item donation tracking for charity
Advanced search and filtering
Mobile-friendly responsive design
Analytics dashboard for eco-impact metrics
π₯ Contributors Fullstack Development & Design
1.Nandu Varghese
2.Ciril C Reji
3.Nidhisha P Raj
4.Ajin K Jayan
π License
This project is licensed under the MIT License β see the LICENSE file for details.