# sahilsahare1/student-record-app-using-mern architecture

> Architecture diagram of the GitHub repository sahilsahare1/student-record-app-using-mern, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sahilsahare1/student-record-app-using-mern
- Repository: https://github.com/sahilsahare1/student-record-app-using-mern

## Overview

This repository implements a small student-records API. An external client sends requests to the Express server, which mounts student routes for create, read, update, and delete operations; those routes use a Mongoose Student model. The server also connects to MongoDB. No frontend source or README documentation was provided, so the graph covers only the evidenced backend workflow.

Main entry points: [`backend/server.js`](https://github.com/sahilsahare1/student-record-app-using-mern/blob/main/backend/server.js) (Express server), [`backend/routes/studentRoutes.js`](https://github.com/sahilsahare1/student-record-app-using-mern/blob/main/backend/routes/studentRoutes.js) (Student CRUD routes), [`backend/models/Student.js`](https://github.com/sahilsahare1/student-record-app-using-mern/blob/main/backend/models/Student.js) (Student model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_http["HTTP API"]
  node_server["Express server<br/>[server.js]"]
  node_routes["Student CRUD routes<br/>[studentRoutes.js]"]
end

subgraph group_data["Student Data"]
  node_student["Student model<br/>[Student.js]"]
  node_mongo[("MongoDB")]
end

node_client(("API client"))

node_client -->|"sends requests"| node_server
node_server -->|"mounts at API path"| node_routes
node_routes -->|"performs CRUD"| node_student
node_server -->|"connects to"| node_mongo
node_student -.->|"persists records"| node_mongo

click node_server "https://github.com/sahilsahare1/student-record-app-using-mern/blob/main/backend/server.js"
click node_routes "https://github.com/sahilsahare1/student-record-app-using-mern/blob/main/backend/routes/studentRoutes.js"
click node_student "https://github.com/sahilsahare1/student-record-app-using-mern/blob/main/backend/models/Student.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_server,node_routes,node_client toneBlue
class node_student,node_mongo toneAmber
```

## Components

### HTTP API

- [Express server](https://github.com/sahilsahare1/student-record-app-using-mern/blob/main/backend/server.js): `backend/server.js`
- [Student CRUD routes](https://github.com/sahilsahare1/student-record-app-using-mern/blob/main/backend/routes/studentRoutes.js): `backend/routes/studentRoutes.js`

### Student Data

- [Student model](https://github.com/sahilsahare1/student-record-app-using-mern/blob/main/backend/models/Student.js): `backend/models/Student.js`
- **MongoDB**

### Other components

- **API client**

## Connections

- API client → Express server: sends requests
- Express server → Student CRUD routes: mounts at API path (evidence: `backend/server.js`)
- Student CRUD routes → Student model: performs CRUD (evidence: `backend/routes/studentRoutes.js`)
- Express server → MongoDB: connects to (evidence: `backend/server.js`)
- Student model → MongoDB: persists records
