# fenixts/wokzon-test architecture

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

- Interactive diagram: https://gitdiagram.com/fenixts/wokzon-test
- Repository: https://github.com/fenixts/wokzon-test

## Overview

WOKZON is a marketplace for finding and contacting local professionals. The main documented journey is browsing listings, viewing a professional, connecting directly, and completing a service transaction; the React app also exposes account, posting, wishlist, location, and chatbot screens. The backend serves listing, user, and cart APIs backed by MongoDB models, and handles profile-image uploads. README-documented payments, subscriptions, messaging, and reviews are included as capabilities, but their implementations and connections are not established by the sampled source.

Main entry points: [`client/src/App.js`](https://github.com/fenixts/wokzon-test/blob/main/client/src/App.js) (React router), [`app.js`](https://github.com/fenixts/wokzon-test/blob/main/app.js) (Express application), [`client/src/Components/ProfessionList.js`](https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/ProfessionList.js) (Professional directory), [`controllers/userControll.js`](https://github.com/fenixts/wokzon-test/blob/main/controllers/userControll.js) (User operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Discovery and contact"]
  node_app["React router<br/>[App.js]"]
  node_listing["Professional directory<br/>[ProfessionList.js]"]
  node_detail["Professional detail"]
  node_location["Location selection<br/>[Location.js]"]
  node_chatbot["Chatbot<br/>[Chatbot.js]"]
  node_wishlist["Wishlist and cart<br/>[Wishlist.js]"]
  node_citycontext["City data state<br/>[CityDataContext.js]"]
  node_documentedmessaging["Direct messaging<br/>[README.md]"]
end

subgraph group_accounts["Accounts and listings"]
  node_account["Account view<br/>[MyAccount.js]"]
  node_login["Login<br/>[Login.js]"]
  node_register["Registration<br/>[Register.js]"]
  node_posting["Professional posting<br/>[Post.js]"]
  node_documentedpayments["Payments and rental fees<br/>[README.md]"]
  node_documentedreviews["Reviews and ratings<br/>[README.md]"]
end

subgraph group_api["API services"]
  node_server["Express application<br/>[app.js]"]
  node_productroutes["Professional listing routes"]
  node_productcontroller["Listing operations"]
  node_userroutes["User routes<br/>[userRoute.js]"]
  node_usercontroller["User operations<br/>[userControll.js]"]
  node_cartroutes["Cart routes<br/>[cartItemRoute.js]"]
  node_cartcontroller["Cart operations"]
  node_imageroutes["Image route handler<br/>[imageRoute.js]"]
  node_imagecontroller["Image upload<br/>[imageController.js]"]
end

subgraph group_storage["Persistent data"]
  node_professiondata[("Professional records")]
  node_users[("User records<br/>[userModel.js]")]
  node_cartdata[("Cart records<br/>[cartItemsModel.js]")]
end

node_customer(("Customer or worker"))

node_customer -->|"uses"| node_app
node_app -->|"routes to"| node_listing
node_app -->|"routes to"| node_detail
node_app -->|"routes to"| node_wishlist
node_app -->|"routes to"| node_account
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_register
node_app -->|"routes to"| node_posting
node_app -->|"routes to"| node_chatbot
node_app -->|"provides state"| node_citycontext
node_listing -->|"reads state"| node_citycontext
node_listing -->|"requests listings"| node_server
node_server -->|"mounts"| node_productroutes
node_server -->|"mounts"| node_userroutes
node_server -->|"mounts"| node_cartroutes
node_productroutes -->|"dispatches"| node_productcontroller
node_productcontroller -->|"reads and writes"| node_professiondata
node_userroutes -->|"dispatches"| node_usercontroller
node_usercontroller -->|"uses"| node_users
node_usercontroller -->|"uses"| node_cartdata
node_cartroutes -->|"dispatches"| node_cartcontroller
node_cartcontroller -->|"reads and writes"| node_cartdata
node_server -.->|"mounts"| node_imageroutes
node_imageroutes -->|"dispatches"| node_imagecontroller
node_customer -->|"connects directly"| node_documentedmessaging
node_customer -->|"pays for services"| node_documentedpayments
node_customer -->|"leaves feedback"| node_documentedreviews

click node_app "https://github.com/fenixts/wokzon-test/blob/main/client/src/App.js"
click node_listing "https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/ProfessionList.js"
click node_detail "https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/ProfessionDetail.js"
click node_location "https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/Location.js"
click node_chatbot "https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/Chatbot.js"
click node_wishlist "https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/Wishlist.js"
click node_account "https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/MyAccount.js"
click node_login "https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/Login.js"
click node_register "https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/Register.js"
click node_posting "https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/Post.js"
click node_citycontext "https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/CityDataContext.js"
click node_server "https://github.com/fenixts/wokzon-test/blob/main/app.js"
click node_productroutes "https://github.com/fenixts/wokzon-test/blob/main/routes/productDataRoutes.js"
click node_productcontroller "https://github.com/fenixts/wokzon-test/blob/main/controllers/productDataController.js"
click node_userroutes "https://github.com/fenixts/wokzon-test/blob/main/routes/userRoute.js"
click node_usercontroller "https://github.com/fenixts/wokzon-test/blob/main/controllers/userControll.js"
click node_cartroutes "https://github.com/fenixts/wokzon-test/blob/main/routes/cartItemRoute.js"
click node_cartcontroller "https://github.com/fenixts/wokzon-test/blob/main/controllers/cartItemController.js"
click node_imageroutes "https://github.com/fenixts/wokzon-test/blob/main/routes/imageRoute.js"
click node_imagecontroller "https://github.com/fenixts/wokzon-test/blob/main/controllers/imageController.js"
click node_professiondata "https://github.com/fenixts/wokzon-test/blob/main/models/productDataModel.js"
click node_users "https://github.com/fenixts/wokzon-test/blob/main/models/userModel.js"
click node_cartdata "https://github.com/fenixts/wokzon-test/blob/main/models/cartItemsModel.js"
click node_documentedpayments "https://github.com/fenixts/wokzon-test/blob/main/README.md"
click node_documentedreviews "https://github.com/fenixts/wokzon-test/blob/main/README.md"
click node_documentedmessaging "https://github.com/fenixts/wokzon-test/blob/main/README.md"

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_app,node_listing,node_detail,node_location,node_chatbot,node_wishlist,node_citycontext,node_documentedmessaging toneBlue
class node_account,node_login,node_register,node_posting,node_documentedpayments,node_documentedreviews toneAmber
class node_server,node_productroutes,node_productcontroller,node_userroutes,node_usercontroller,node_cartroutes,node_cartcontroller,node_imageroutes,node_imagecontroller toneMint
class node_professiondata,node_users,node_cartdata,node_customer toneRose
```

## Components

### Discovery and contact

- [React router](https://github.com/fenixts/wokzon-test/blob/main/client/src/App.js): `client/src/App.js`
- [Professional directory](https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/ProfessionList.js): `client/src/Components/ProfessionList.js`
- [Professional detail](https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/ProfessionDetail.js): `client/src/Components/ProfessionDetail.js`
- [Location selection](https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/Location.js): `client/src/Components/Location.js`
- [Chatbot](https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/Chatbot.js): `client/src/Components/Chatbot.js`
- [Wishlist and cart](https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/Wishlist.js): `client/src/Components/Wishlist.js`
- [City data state](https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/CityDataContext.js): `client/src/Components/CityDataContext.js`
- [Direct messaging](https://github.com/fenixts/wokzon-test/blob/main/README.md): `README.md`

### Accounts and listings

- [Account view](https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/MyAccount.js): `client/src/Components/MyAccount.js`
- [Login](https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/Login.js): `client/src/Components/Login.js`
- [Registration](https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/Register.js): `client/src/Components/Register.js`
- [Professional posting](https://github.com/fenixts/wokzon-test/blob/main/client/src/Components/Post.js): `client/src/Components/Post.js`
- [Payments and rental fees](https://github.com/fenixts/wokzon-test/blob/main/README.md): `README.md`
- [Reviews and ratings](https://github.com/fenixts/wokzon-test/blob/main/README.md): `README.md`

### API services

- [Express application](https://github.com/fenixts/wokzon-test/blob/main/app.js): `app.js`
- [Professional listing routes](https://github.com/fenixts/wokzon-test/blob/main/routes/productDataRoutes.js): `routes/productDataRoutes.js`
- [Listing operations](https://github.com/fenixts/wokzon-test/blob/main/controllers/productDataController.js): `controllers/productDataController.js`
- [User routes](https://github.com/fenixts/wokzon-test/blob/main/routes/userRoute.js): `routes/userRoute.js`
- [User operations](https://github.com/fenixts/wokzon-test/blob/main/controllers/userControll.js): `controllers/userControll.js`
- [Cart routes](https://github.com/fenixts/wokzon-test/blob/main/routes/cartItemRoute.js): `routes/cartItemRoute.js`
- [Cart operations](https://github.com/fenixts/wokzon-test/blob/main/controllers/cartItemController.js): `controllers/cartItemController.js`
- [Image route handler](https://github.com/fenixts/wokzon-test/blob/main/routes/imageRoute.js): `routes/imageRoute.js`
- [Image upload](https://github.com/fenixts/wokzon-test/blob/main/controllers/imageController.js): `controllers/imageController.js`

### Persistent data

- [Professional records](https://github.com/fenixts/wokzon-test/blob/main/models/productDataModel.js): `models/productDataModel.js`
- [User records](https://github.com/fenixts/wokzon-test/blob/main/models/userModel.js): `models/userModel.js`
- [Cart records](https://github.com/fenixts/wokzon-test/blob/main/models/cartItemsModel.js): `models/cartItemsModel.js`

### Other components

- **Customer or worker**

## Connections

- Customer or worker → React router: uses (evidence: `README.md`)
- React router → Professional directory: routes to (evidence: `client/src/App.js`)
- React router → Professional detail: routes to (evidence: `client/src/App.js`)
- React router → Wishlist and cart: routes to (evidence: `client/src/App.js`)
- React router → Account view: routes to (evidence: `client/src/App.js`)
- React router → Login: routes to (evidence: `client/src/App.js`)
- React router → Registration: routes to (evidence: `client/src/App.js`)
- React router → Professional posting: routes to (evidence: `client/src/App.js`)
- React router → Chatbot: routes to (evidence: `client/src/App.js`)
- React router → City data state: provides state (evidence: `client/src/App.js`)
- Professional directory → City data state: reads state (evidence: `client/src/Components/ProfessionList.js`)
- Professional directory → Express application: requests listings (evidence: `client/src/Components/ProfessionList.js`)
- Express application → Professional listing routes: mounts (evidence: `app.js`)
- Express application → User routes: mounts (evidence: `app.js`)
- Express application → Cart routes: mounts (evidence: `app.js`)
- Professional listing routes → Listing operations: dispatches (evidence: `routes/productDataRoutes.js`)
- Listing operations → Professional records: reads and writes (evidence: `controllers/productDataController.js`)
- User routes → User operations: dispatches (evidence: `routes/userRoute.js`)
- User operations → User records: uses (evidence: `controllers/userControll.js`)
- User operations → Cart records: uses (evidence: `controllers/userControll.js`)
- Cart routes → Cart operations: dispatches (evidence: `routes/cartItemRoute.js`)
- Cart operations → Cart records: reads and writes (evidence: `controllers/cartItemController.js`)
- Express application → Image route handler: mounts
- Image route handler → Image upload: dispatches (evidence: `routes/imageRoute.js`)
- Customer or worker → Direct messaging: connects directly (evidence: `README.md`)
- Customer or worker → Payments and rental fees: pays for services (evidence: `README.md`)
- Customer or worker → Reviews and ratings: leaves feedback (evidence: `README.md`)
