How arpit0109/sih-project-2-id-25060 works
This is a recycling/scrap marketplace with separate seller and buyer experiences: sellers authenticate and list waste, while buyers browse listings and proceed through confirmation/contact screens. The app also exposes location suggestions and chatbot routes, and the frontend includes recycling, games, leaderboard, and shop experiences. The graph reflects routes and calls visible in sampled files; several feature pages and backend route implementations were not sampled, so their internal wiring is left unspecified.
Main entry points: App.jsx Route application · app.js API server · mapRouter.js Map routes · authRoute.js Seller auth routes
Components 30
Web application
- Route application
frontend/src/App.jsx - Seller experience
frontend/src/pages/User/Selling page/SellingPage.jsx - Buyer experience
frontend/src/pages/Buyer/BuyScrap/ListOfWaste.jsx
User identity
- Seller sign-in
frontend/src/pages/User/UserLogin/UserLogin.jsx - Buyer sign-in
frontend/src/pages/Buyer/BuyerLogin/BuyerLogin.jsx - Seller auth routes
backend/routes/UserAuth/authRoute.js - Buyer auth routes
backend/routes/UserAuth/BuyerAuthRouter.js - Seller auth logic
backend/controllers/AuthController/AuthControl.js - Buyer auth logic
backend/controllers/AuthController/BuyerAuthControler.js - Seller accounts
backend/models/UserModel.js - Buyer accounts
backend/models/BuyerModel.js
Scrap marketplace
- Create listing
frontend/src/pages/User/SellScrap/Sell.jsx - Listing detail
frontend/src/pages/Buyer/BuyScrap/WasteDescription.jsx - Buyer confirmation
frontend/src/pages/Buyer/BuyerConfirm/BuyerConfirm.jsx - Seller contact
frontend/src/pages/Buyer/SellerFound/Found.jsx - API server
backend/app.js - Scrap routes
backend/routes/ScrapRouter/scrapCreate.js - Listing creation
backend/controllers/ScrapController/ScrapController.js - Waste listings
backend/models/WasteProductModel.js
Supporting features
- Location lookup
frontend/src/components/SearchPanal/LocationSearchpanel.jsx - Map routes
backend/routes/mapRouter/mapRouter.js - Suggestion logic
backend/controllers/mapController/mapControl.js - Chatbot experience
frontend/src/pages/Chatbot/Chatbot.jsx - Chatbot routes
backend/routes/chatBot/chatbot.js - Recycling guidance
frontend/src/pages/User/recycling/RecyclingWaste.jsx - Recycling points
frontend/src/pages/User/recycling/recyclingPonts.jsx - Recycling games
frontend/src/pages/User/Games/Games.jsx - Leaderboard
frontend/src/pages/User/LeaderBord/LeaderBord.jsx - Rewards shop
frontend/src/pages/Shop/Shop.jsx
Other components
- Visitor
Connections 28
- Visitor → Route application: opens
- Route application → Seller sign-in: routes to
- Route application → Buyer sign-in: routes to
- Route application → Seller experience: routes to
- Route application → Create listing: routes to
- Route application → Buyer experience: routes to
- Route application → Listing detail: routes to
- Route application → Buyer confirmation: routes to
- Route application → Seller contact: routes to
- Route application → Chatbot experience: routes to
- Route application → Recycling guidance: routes to
- Route application → Recycling points: routes to
- Route application → Recycling games: routes to
- Route application → Leaderboard: routes to
- Route application → Rewards shop: routes to
- API server → Seller auth routes: mounts
- API server → Buyer auth routes: mounts
- API server → Scrap routes: mounts
- API server → Map routes: mounts
- API server → Chatbot routes: mounts
- Seller auth routes → Seller auth logic: dispatches
- Buyer auth routes → Buyer auth logic: dispatches
- Seller auth logic → Seller accounts: registers and reads
- Buyer auth logic → Buyer accounts: registers and reads
- Scrap routes → Listing creation: dispatches
- Listing creation → Waste listings: creates listing
- Map routes → Suggestion logic: dispatches
- Location lookup → Map routes: requests suggestions