Swap, Save, Sustain!
Problem Statement: Problem Statement: Develop ReWear, a web-based platform that enables users to exchange unused clothing through direct swaps or a point-based redemption system. The goal is to promote sustainable fashion and reduce textile waste by encouraging users to reuse wearable garments instead of discarding them.
ReWear is a web-based clothing exchange platform that allows users to list unused clothing items, browse others' listings, and swap directly or via a point-based system. The platform promotes conscious fashion choices by encouraging garment reuse and reducing textile waste.
Team Name: BASILISK
Team Members:
- @debrup27 -> [email protected]
- @raunaksaigal -> [email protected]
- @kantandesu -> [email protected]
- @sagnik-tech56 -> [email protected]
- Frontend: React(Vite), TailwindCSS, React Router, Axios
- Backend: Django, Django REST Framework, SQLite/PostgreSQL, Django AllAuth / Djoser for auth
- Integrations: Cloudinary / S3 for image uploads
- Authentication:
- Email/password registration and login
- Password reset
- Token-based authentication
- User Profile & Dashboard:
- View/edit profile
- Points balance
- Upload/manage items
- Ongoing/completed swaps list
- Item Listing:
- Upload images (gallery)
- Title, description, category, type, size, condition, tags
- Swap Mechanism
- Send swap request (direct or point-based)
- Accept/reject/delete swap requests
- View current and past swaps
- Points are adjusted accordingly
- Discovery
- Browse all items
- Filter by category
- Admin Panel (TO BE IMPLEMENTED)
- Approve/reject items
- Remove inappropriate content
- View all swap activity
- Ban users
- Send announcements
Prerequisites
- Python 3.10+
- Node.js 18+
- pip, npm/yarn
cd backend
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py runserver # http://localhost:8000
cd rewear_frontend
npm install
npm run dev # http://localhost:5173
Backend .env
# Environment variables for OAuth settings
SECRET_KEY=django-insecure-jum+o3(&957k%pr*u*eyw^*clq1uc-ieevpf#sojmhqrq0b-ln
DEBUG=True
# Google OAuth credentials (Get these from Google Cloud Console)
GOOGLE_OAUTH2_CLIENT_ID=your_google_client_id_here
GOOGLE_OAUTH2_CLIENT_SECRET=your_google_client_secret_here
# Frontend URL (for redirects)
FRONTEND_URL=http://localhost:3000
# CORS settings
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
Frontend .env
VITE_API_URL=http://localhost:8000
- Django Docs: https://docs.djangoproject.com/
- DRF Docs: https://www.django-rest-framework.org/
- React Docs: https://reactjs.org/
- Cloudinary: https://cloudinary.com/
- TailwindCSS: https://tailwindcss.com/
Note: Due to Lack of time the mobile app is not yet linked with backend but the website has been connected with most of the functionalities.
Thank you to the Odoo Community for allowing us to participate in this prestigious hackathon ReWear empowers users to participate in a sustainable clothing economy. Built with modern tech and clean UI/UX, it turns unused clothing into new value.
Together, let's make fashion circular.