# 7gnikhil/maruthitooling architecture

> Architecture diagram of the GitHub repository 7gnikhil/maruthitooling, 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/7gnikhil/maruthitooling
- Repository: https://github.com/7gnikhil/maruthitooling

## Overview

Maruthi Toolings is a manufacturer’s B2B showcase and lead-generation platform. Visitors browse products and manufacturing services, learn about the company, and contact the business through the contact form or chatbot; job seekers can view openings and apply. The React application also provides an admin inbox for inquiries and applications. The Express API persists inquiries, applications, and career listings in MongoDB. Product and service catalog content is represented by frontend mock data. Backend wiring beyond the sampled handlers is described from the README and source index, not inspected directly.

Main entry points: [`frontend/src/App.tsx`](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/App.tsx) (Application Shell), [`frontend/src/api/maruthi-toolings.api.ts`](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/api/maruthi-toolings.api.ts) (Frontend API Client), [`backend/src/server.ts`](https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/server.ts) (Express API), [`frontend/src/pages/Products.tsx`](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/pages/Products.tsx) (Product Showcase)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Showcase and Navigation"]
  node_app["Application Shell<br/>[App.tsx]"]
  node_home["Home<br/>[HomePage.tsx]"]
  node_about["About<br/>[AboutUs.tsx]"]
end

subgraph group_catalog["Product and Service Catalog"]
  node_products["Product Showcase<br/>[Products.tsx]"]
  node_productdata["Product Catalog Data<br/>[mock-data.ts]"]
  node_gallery["Product Galleries"]
  node_services["Services Hub<br/>[Services.tsx]"]
end

subgraph group_engagement["Leads and Careers"]
  node_contact["Contact Form<br/>[ContactUs.tsx]"]
  node_chatbot["Customer Assistant<br/>[Chatbot.tsx]"]
  node_careers["Career Listings<br/>[Careers.tsx]"]
  node_application["Job Application"]
  node_admin["Admin Inbox"]
  node_api["Frontend API Client"]
end

subgraph group_server["API and Persistence"]
  node_express["Express API<br/>[server.ts]"]
  node_inquiryhandler["Inquiry and Application Handlers<br/>[data.controller.ts]"]
  node_careerhandler["Career Handlers"]
  node_inquirymodel[("Inquiry Store Model<br/>[inquiry.model.ts]")]
  node_applicationmodel[("Application Store Model")]
  node_careermodel[("Career Store Model<br/>[career.model.ts]")]
  node_db["MongoDB Connection<br/>[db.ts]"]
end

node_visitor(("Visitor"))
node_mongodb[("MongoDB")]

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_home
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_products
node_app -->|"routes to"| node_services
node_app -->|"routes to"| node_contact
node_app -->|"routes to"| node_careers
node_products -->|"reads"| node_productdata
node_services -->|"reads"| node_productdata
node_products -->|"renders"| node_gallery
node_app -->|"renders"| node_chatbot
node_chatbot -->|"submits inquiry"| node_api
node_contact -->|"submits inquiry"| node_api
node_careers -->|"opens form"| node_application
node_application -->|"submits application"| node_api
node_admin -->|"fetches records"| node_api
node_api -.->|"calls REST API"| node_express
node_express -->|"routes requests"| node_inquiryhandler
node_express -->|"routes requests"| node_careerhandler
node_inquiryhandler -->|"reads and writes"| node_inquirymodel
node_inquiryhandler -->|"reads and writes"| node_applicationmodel
node_careerhandler -->|"reads and writes"| node_careermodel
node_express -->|"connects"| node_db
node_db -->|"connects"| node_mongodb

click node_app "https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/App.tsx"
click node_home "https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/pages/HomePage.tsx"
click node_about "https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/pages/AboutUs.tsx"
click node_products "https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/pages/Products.tsx"
click node_productdata "https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/api/mock-data.ts"
click node_gallery "https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/components/ProductSlideshow.tsx"
click node_services "https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/pages/Services.tsx"
click node_contact "https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/pages/ContactUs.tsx"
click node_chatbot "https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/components/Chatbot.tsx"
click node_careers "https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/pages/Careers.tsx"
click node_application "https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/components/JobApplicationModal.tsx"
click node_admin "https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/components/AdminInboxModal.tsx"
click node_api "https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/api/maruthi-toolings.api.ts"
click node_express "https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/server.ts"
click node_inquiryhandler "https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/controllers/data.controller.ts"
click node_careerhandler "https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/controllers/career.controller.ts"
click node_inquirymodel "https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/models/inquiry.model.ts"
click node_applicationmodel "https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/models/application.model.ts"
click node_careermodel "https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/models/career.model.ts"
click node_db "https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/config/db.ts"

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_home,node_about toneBlue
class node_products,node_productdata,node_gallery,node_services,node_mongodb toneAmber
class node_contact,node_chatbot,node_careers,node_application,node_admin,node_api toneMint
class node_express,node_inquiryhandler,node_careerhandler,node_inquirymodel,node_applicationmodel,node_careermodel,node_db toneRose
class node_visitor toneIndigo
```

## Components

### Showcase and Navigation

- [Application Shell](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Home](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/pages/HomePage.tsx): `frontend/src/pages/HomePage.tsx`
- [About](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/pages/AboutUs.tsx): `frontend/src/pages/AboutUs.tsx`

### Product and Service Catalog

- [Product Showcase](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/pages/Products.tsx): `frontend/src/pages/Products.tsx`
- [Product Catalog Data](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/api/mock-data.ts): `frontend/src/api/mock-data.ts`
- [Product Galleries](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/components/ProductSlideshow.tsx): `frontend/src/components/ProductSlideshow.tsx`
- [Services Hub](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/pages/Services.tsx): `frontend/src/pages/Services.tsx`

### Leads and Careers

- [Contact Form](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/pages/ContactUs.tsx): `frontend/src/pages/ContactUs.tsx`
- [Customer Assistant](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/components/Chatbot.tsx): `frontend/src/components/Chatbot.tsx`
- [Career Listings](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/pages/Careers.tsx): `frontend/src/pages/Careers.tsx`
- [Job Application](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/components/JobApplicationModal.tsx): `frontend/src/components/JobApplicationModal.tsx`
- [Admin Inbox](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/components/AdminInboxModal.tsx): `frontend/src/components/AdminInboxModal.tsx`
- [Frontend API Client](https://github.com/7gnikhil/maruthitooling/blob/main/frontend/src/api/maruthi-toolings.api.ts): `frontend/src/api/maruthi-toolings.api.ts`

### API and Persistence

- [Express API](https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/server.ts): `backend/src/server.ts`
- [Inquiry and Application Handlers](https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/controllers/data.controller.ts): `backend/src/controllers/data.controller.ts`
- [Career Handlers](https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/controllers/career.controller.ts): `backend/src/controllers/career.controller.ts`
- [Inquiry Store Model](https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/models/inquiry.model.ts): `backend/src/models/inquiry.model.ts`
- [Application Store Model](https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/models/application.model.ts): `backend/src/models/application.model.ts`
- [Career Store Model](https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/models/career.model.ts): `backend/src/models/career.model.ts`
- [MongoDB Connection](https://github.com/7gnikhil/maruthitooling/blob/main/backend/src/config/db.ts): `backend/src/config/db.ts`

### Other components

- **Visitor**
- **MongoDB**

## Connections

- Visitor → Application Shell: opens (evidence: `README.md`)
- Application Shell → Home: renders (evidence: `frontend/src/App.tsx`)
- Application Shell → About: routes to (evidence: `frontend/src/App.tsx`)
- Application Shell → Product Showcase: routes to (evidence: `frontend/src/App.tsx`)
- Application Shell → Services Hub: routes to (evidence: `frontend/src/App.tsx`)
- Application Shell → Contact Form: routes to (evidence: `frontend/src/App.tsx`)
- Application Shell → Career Listings: routes to (evidence: `frontend/src/App.tsx`)
- Product Showcase → Product Catalog Data: reads (evidence: `frontend/src/pages/Products.tsx`)
- Services Hub → Product Catalog Data: reads (evidence: `frontend/src/pages/Services.tsx`)
- Product Showcase → Product Galleries: renders (evidence: `frontend/src/pages/Products.tsx`)
- Application Shell → Customer Assistant: renders (evidence: `frontend/src/App.tsx`)
- Customer Assistant → Frontend API Client: submits inquiry (evidence: `frontend/src/components/Chatbot.tsx`)
- Contact Form → Frontend API Client: submits inquiry (evidence: `frontend/src/pages/ContactUs.tsx`)
- Career Listings → Job Application: opens form (evidence: `frontend/src/pages/Careers.tsx`)
- Job Application → Frontend API Client: submits application (evidence: `frontend/src/components/JobApplicationModal.tsx`)
- Admin Inbox → Frontend API Client: fetches records (evidence: `frontend/src/components/AdminInboxModal.tsx`)
- Frontend API Client → Express API: calls REST API (evidence: `README.md`)
- Express API → Inquiry and Application Handlers: routes requests (evidence: `backend/src/server.ts`)
- Express API → Career Handlers: routes requests (evidence: `backend/src/server.ts`)
- Inquiry and Application Handlers → Inquiry Store Model: reads and writes (evidence: `backend/src/controllers/data.controller.ts`)
- Inquiry and Application Handlers → Application Store Model: reads and writes (evidence: `backend/src/controllers/data.controller.ts`)
- Career Handlers → Career Store Model: reads and writes (evidence: `backend/src/controllers/career.controller.ts`)
- Express API → MongoDB Connection: connects (evidence: `backend/src/server.ts`)
- MongoDB Connection → MongoDB: connects (evidence: `README.md`)
