# hareeshdevulapally18-blip/recyclic architecture

> Architecture diagram of the GitHub repository hareeshdevulapally18-blip/recyclic, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hareeshdevulapally18-blip/recyclic
- Repository: https://github.com/hareeshdevulapally18-blip/recyclic

## Overview

Recyclic is a recycling and waste-management web app. Users register waste, view and filter records, coordinate pickup and recycling status, and locate recyclers on a map. The React app sends waste requests to an Express API, which persists waste and user data in MongoDB and provides registration and login endpoints. The README also identifies location/map integration. The frontend authentication flow is not shown, so no UI-to-auth link is asserted; the map and geocoding integrations are visible in the sampled app source.

Main entry points: [`backend/server.js`](https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/backend/server.js) (Express API), [`frontend/src/App.jsx`](https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/frontend/src/App.jsx) (Recycler map), [`frontend/src/main.jsx`](https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/frontend/src/main.jsx) (React entry), [`backend/models/user.js`](https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/backend/models/user.js) (User schema)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend experience"]
  node_entry["React entry<br/>[main.jsx]"]
end

subgraph group_waste["Waste coordination"]
  node_waste_ui["Waste workflow<br/>[App.jsx]"]
  node_records["Waste records<br/>[App.jsx]"]
  node_recycler["Recycler map<br/>[App.jsx]"]
  node_shipment["Shipment stages<br/>[App.jsx]"]
end

subgraph group_backend["Backend services"]
  node_api["Express API<br/>[server.js]"]
  node_auth["Auth endpoints<br/>[server.js]"]
end

subgraph group_data["Persistence"]
  node_waste_model["Waste schema<br/>[Waste.js]"]
  node_user_model["User schema<br/>[user.js]"]
  node_mongo[("MongoDB")]
end

node_user(("App user"))
node_maps["Google Maps"]
node_geocoder["Nominatim geocoder"]

node_user -->|"opens app"| node_entry
node_entry -->|"renders"| node_waste_ui
node_user -->|"views and filters"| node_records
node_user -->|"locates recyclers"| node_recycler
node_user -->|"advances shipment"| node_shipment
node_waste_ui -->|"submits waste"| node_api
node_records -->|"updates status"| node_api
node_api -->|"creates and queries"| node_waste_model
node_api -->|"registers and queries"| node_user_model
node_api -->|"connects"| node_mongo
node_auth -->|"checks and saves"| node_user_model
node_recycler -->|"renders map"| node_maps
node_recycler -->|"searches locations"| node_geocoder

click node_entry "https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/frontend/src/main.jsx"
click node_waste_ui "https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/frontend/src/App.jsx"
click node_records "https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/frontend/src/App.jsx"
click node_recycler "https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/frontend/src/App.jsx"
click node_shipment "https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/frontend/src/App.jsx"
click node_api "https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/backend/server.js"
click node_auth "https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/backend/server.js"
click node_waste_model "https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/backend/models/Waste.js"
click node_user_model "https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/backend/models/user.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_user toneBlue
class node_waste_ui,node_records,node_recycler,node_shipment toneAmber
class node_api,node_auth toneMint
class node_waste_model,node_user_model,node_mongo toneRose
class node_maps,node_geocoder toneIndigo
```

## Components

### Frontend experience

- [React entry](https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`

### Waste coordination

- [Waste workflow](https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Waste records](https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Recycler map](https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Shipment stages](https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`

### Backend services

- [Express API](https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/backend/server.js): `backend/server.js`
- [Auth endpoints](https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/backend/server.js): `backend/server.js`

### Persistence

- [Waste schema](https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/backend/models/Waste.js): `backend/models/Waste.js`
- [User schema](https://github.com/hareeshdevulapally18-blip/recyclic/blob/main/backend/models/user.js): `backend/models/user.js`
- **MongoDB**

### Other components

- **App user**
- **Google Maps**
- **Nominatim geocoder**

## Connections

- App user → React entry: opens app (evidence: `frontend/src/main.jsx`)
- React entry → Waste workflow: renders (evidence: `frontend/src/main.jsx`)
- App user → Waste records: views and filters (evidence: `frontend/src/App.jsx`)
- App user → Recycler map: locates recyclers (evidence: `frontend/src/App.jsx`)
- App user → Shipment stages: advances shipment (evidence: `frontend/src/App.jsx`)
- Waste workflow → Express API: submits waste (evidence: `frontend/src/App.jsx`)
- Waste records → Express API: updates status (evidence: `frontend/src/App.jsx`)
- Express API → Waste schema: creates and queries (evidence: `backend/server.js`)
- Express API → User schema: registers and queries (evidence: `backend/server.js`)
- Express API → MongoDB: connects (evidence: `backend/server.js`)
- Auth endpoints → User schema: checks and saves (evidence: `backend/server.js`)
- Recycler map → Google Maps: renders map (evidence: `frontend/src/App.jsx`)
- Recycler map → Nominatim geocoder: searches locations (evidence: `frontend/src/App.jsx`)
