How aayushsinghal294/rewear works
Project type and purpose
• This is a full-stack web application called “ReWear – Community Clothing Exchange.”
• Frontend is a React (Vite) single-page app; backend is a Node.js/Express REST API with data models for users, items, and swap requests.
File structure
• client/
– src/main.jsx & public/index.html: entry points
– src/App.jsx, src/pages/*, src/components/*: UI and page views (Home, Browse, Dashboard, etc.)
– src/services/api.js: REST client layer
• server/
– server.js: Express app bootstrap
– routes/*.js: REST endpoints for items and users
– models/*.js: Mongoose (or similar) schemas: User, Item, SwapRequest
– .env: DB connection and secrets
README
• Confirms the purpose: a swap and points-based clothing exchange platform.
• Highlights sustainability use case.