# prathipatiakashchowdary1/neuintern architecture

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

- Interactive diagram: https://gitdiagram.com/prathipatiakashchowdary1/neuintern
- Repository: https://github.com/prathipatiakashchowdary1/neuintern

## Overview

NeuIntern is an internship-program platform with a React public site and student/admin dashboards backed by FastAPI. The main student journey is account creation and login, program enrollment, task submission, certificate-fee payment, then certificate access; admins manage programs and review enrollment, payment, and analytics data. The graph retains documented public-site, contact, and certificate-lookup capabilities. Backend router and service details are only partly sampled, so some documented links use the README; unsampled implementation is not inferred beyond it.

Main entry points: [`backend/app/main.py`](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/main.py) (FastAPI Application), [`frontend/src/routes/AppRoutes.jsx`](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/frontend/src/routes/AppRoutes.jsx) (Web Routes), [`backend/app/routers/enrollments.py`](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/enrollments.py) (Enrollment API), [`backend/app/services/certificate_service.py`](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/services/certificate_service.py) (Certificate Lifecycle)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public Experience"]
  node_web_routes["Web Routes<br/>[AppRoutes.jsx]"]
  node_public_pages["Public Pages"]
end

subgraph group_student["Student Journey"]
  node_program_details["Program Details<br/>[ProgramDetails.jsx]"]
  node_registration["Registration<br/>[Register.jsx]"]
  node_student_dashboard["Student Dashboard<br/>[Dashboard.jsx]"]
  node_enrollment_ui["Enrollment and Checkout<br/>[EnrollModal.jsx]"]
end

subgraph group_admin["Admin Operations"]
  node_admin_pages["Admin Pages"]
  node_program_manager["Program Manager"]
end

subgraph group_api["API and Domain"]
  node_enrollment_api["Enrollment API<br/>[enrollments.py]"]
  node_certificate_domain["Certificate Lifecycle"]
  node_pdf_documents["PDF Documents<br/>[pdf_service.py]"]
  node_admin_api["Admin API<br/>[admin.py]"]
  node_auth_api["Authentication API<br/>[auth.py]"]
  node_program_api["Program Catalog API<br/>[programs.py]"]
  node_contact_api["Contact API<br/>[contact.py]"]
  node_certificate_api["Certificate Lookup API<br/>[certificate.py]"]
  node_payment_api["Payment API<br/>[payments.py]"]
  node_api_entry["FastAPI Application<br/>[main.py]"]
end

subgraph group_infra["Persistence and Integrations"]
  node_database[("Application Database<br/>[models.py]")]
  node_razorpay["Razorpay"]
  node_email_service["Email Service<br/>[email_service.py]"]
end

node_visitor(("Visitor"))
node_student_actor(("Student"))
node_admin_actor(("Administrator"))

node_visitor -->|"browses"| node_web_routes
node_web_routes -->|"routes to"| node_public_pages
node_student_actor -->|"registers"| node_registration
node_student_actor -->|"visits"| node_web_routes
node_web_routes -->|"routes to"| node_program_details
node_web_routes -->|"protects route"| node_student_dashboard
node_student_actor -->|"selects program"| node_program_details
node_program_details -->|"opens enrollment"| node_enrollment_ui
node_student_actor -->|"submits task"| node_enrollment_ui
node_enrollment_ui -->|"opens checkout"| node_razorpay
node_enrollment_ui -->|"creates and verifies order"| node_payment_api
node_student_actor -->|"tracks progress"| node_student_dashboard
node_student_dashboard -->|"loads enrollment"| node_enrollment_api
node_enrollment_api -->|"reads and updates"| node_database
node_enrollment_api -->|"unlocks certificate"| node_certificate_domain
node_certificate_domain -->|"persists certificate"| node_database
node_certificate_domain -->|"generates PDF"| node_pdf_documents
node_certificate_domain -->|"emails certificate"| node_email_service
node_enrollment_api -->|"generates documents"| node_pdf_documents
node_admin_actor -->|"opens admin area"| node_web_routes
node_web_routes -->|"routes to"| node_admin_pages
node_admin_actor -->|"manages programs"| node_program_manager
node_program_manager -->|"creates and updates"| node_admin_api
node_admin_actor -->|"reviews operations"| node_admin_pages
node_admin_pages -->|"requests admin data"| node_admin_api
node_admin_api -->|"reads and writes"| node_database
node_api_entry -->|"registers router"| node_auth_api
node_api_entry -->|"registers router"| node_enrollment_api
node_api_entry -->|"registers router"| node_admin_api
node_api_entry -->|"registers router"| node_program_api
node_api_entry -->|"registers router"| node_payment_api
node_api_entry -->|"registers router"| node_contact_api
node_api_entry -->|"registers router"| node_certificate_api
node_api_entry -->|"initializes schema"| node_database
node_student_actor -->|"sends inquiry"| node_contact_api
node_visitor -->|"checks certificate"| node_certificate_api
node_payment_api -->|"processes payment"| node_razorpay

click node_web_routes "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/frontend/src/routes/AppRoutes.jsx"
click node_public_pages "https://github.com/prathipatiakashchowdary1/neuintern/tree/main/frontend/src/pages"
click node_program_details "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/frontend/src/pages/ProgramDetails.jsx"
click node_registration "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/frontend/src/pages/Register.jsx"
click node_student_dashboard "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/frontend/src/pages/Dashboard.jsx"
click node_enrollment_ui "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/frontend/src/components/programs/EnrollModal.jsx"
click node_enrollment_api "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/enrollments.py"
click node_certificate_domain "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/services/certificate_service.py"
click node_pdf_documents "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/services/pdf_service.py"
click node_admin_pages "https://github.com/prathipatiakashchowdary1/neuintern/tree/main/frontend/src/pages/admin"
click node_program_manager "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/frontend/src/components/admin/ProgramsManager.jsx"
click node_admin_api "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/admin.py"
click node_auth_api "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/auth.py"
click node_program_api "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/programs.py"
click node_contact_api "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/contact.py"
click node_certificate_api "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/certificate.py"
click node_payment_api "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/payments.py"
click node_api_entry "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/main.py"
click node_database "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/db/models.py"
click node_email_service "https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/services/email_service.py"

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_web_routes,node_public_pages toneBlue
class node_program_details,node_registration,node_student_dashboard,node_enrollment_ui toneAmber
class node_admin_pages,node_program_manager toneMint
class node_enrollment_api,node_certificate_domain,node_pdf_documents,node_admin_api,node_auth_api,node_program_api,node_contact_api,node_certificate_api,node_payment_api,node_api_entry toneRose
class node_database,node_razorpay,node_email_service,node_visitor,node_student_actor,node_admin_actor toneIndigo
```

## Components

### Public Experience

- [Web Routes](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/frontend/src/routes/AppRoutes.jsx): `frontend/src/routes/AppRoutes.jsx`
- [Public Pages](https://github.com/prathipatiakashchowdary1/neuintern/tree/main/frontend/src/pages): `frontend/src/pages`

### Student Journey

- [Program Details](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/frontend/src/pages/ProgramDetails.jsx): `frontend/src/pages/ProgramDetails.jsx`
- [Registration](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/frontend/src/pages/Register.jsx): `frontend/src/pages/Register.jsx`
- [Student Dashboard](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/frontend/src/pages/Dashboard.jsx): `frontend/src/pages/Dashboard.jsx`
- [Enrollment and Checkout](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/frontend/src/components/programs/EnrollModal.jsx): `frontend/src/components/programs/EnrollModal.jsx`

### Admin Operations

- [Admin Pages](https://github.com/prathipatiakashchowdary1/neuintern/tree/main/frontend/src/pages/admin): `frontend/src/pages/admin`
- [Program Manager](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/frontend/src/components/admin/ProgramsManager.jsx): `frontend/src/components/admin/ProgramsManager.jsx`

### API and Domain

- [Enrollment API](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/enrollments.py): `backend/app/routers/enrollments.py`
- [Certificate Lifecycle](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/services/certificate_service.py): `backend/app/services/certificate_service.py`
- [PDF Documents](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/services/pdf_service.py): `backend/app/services/pdf_service.py`
- [Admin API](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/admin.py): `backend/app/routers/admin.py`
- [Authentication API](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/auth.py): `backend/app/routers/auth.py`
- [Program Catalog API](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/programs.py): `backend/app/routers/programs.py`
- [Contact API](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/contact.py): `backend/app/routers/contact.py`
- [Certificate Lookup API](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/certificate.py): `backend/app/routers/certificate.py`
- [Payment API](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/routers/payments.py): `backend/app/routers/payments.py`
- [FastAPI Application](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/main.py): `backend/app/main.py`

### Persistence and Integrations

- [Application Database](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/db/models.py): `backend/app/db/models.py`
- **Razorpay**
- [Email Service](https://github.com/prathipatiakashchowdary1/neuintern/blob/main/backend/app/services/email_service.py): `backend/app/services/email_service.py`

### Other components

- **Visitor**
- **Student**
- **Administrator**

## Connections

- Visitor → Web Routes: browses (evidence: `frontend/src/routes/AppRoutes.jsx`)
- Web Routes → Public Pages: routes to (evidence: `frontend/src/routes/AppRoutes.jsx`)
- Student → Registration: registers (evidence: `README.md`)
- Student → Web Routes: visits (evidence: `README.md`)
- Web Routes → Program Details: routes to (evidence: `frontend/src/routes/AppRoutes.jsx`)
- Web Routes → Student Dashboard: protects route (evidence: `frontend/src/routes/AppRoutes.jsx`)
- Student → Program Details: selects program (evidence: `README.md`)
- Program Details → Enrollment and Checkout: opens enrollment (evidence: `README.md`)
- Student → Enrollment and Checkout: submits task (evidence: `README.md`)
- Enrollment and Checkout → Razorpay: opens checkout (evidence: `frontend/src/components/programs/EnrollModal.jsx`)
- Enrollment and Checkout → Payment API: creates and verifies order (evidence: `frontend/src/components/programs/EnrollModal.jsx`)
- Student → Student Dashboard: tracks progress (evidence: `README.md`)
- Student Dashboard → Enrollment API: loads enrollment (evidence: `README.md`)
- Enrollment API → Application Database: reads and updates (evidence: `backend/app/routers/enrollments.py`)
- Enrollment API → Certificate Lifecycle: unlocks certificate (evidence: `backend/app/routers/enrollments.py`)
- Certificate Lifecycle → Application Database: persists certificate (evidence: `backend/app/services/certificate_service.py`)
- Certificate Lifecycle → PDF Documents: generates PDF (evidence: `backend/app/services/certificate_service.py`)
- Certificate Lifecycle → Email Service: emails certificate (evidence: `backend/app/services/certificate_service.py`)
- Enrollment API → PDF Documents: generates documents (evidence: `backend/app/routers/enrollments.py`)
- Administrator → Web Routes: opens admin area (evidence: `frontend/src/routes/AppRoutes.jsx`)
- Web Routes → Admin Pages: routes to (evidence: `frontend/src/routes/AppRoutes.jsx`)
- Administrator → Program Manager: manages programs (evidence: `README.md`)
- Program Manager → Admin API: creates and updates (evidence: `frontend/src/components/admin/ProgramsManager.jsx`)
- Administrator → Admin Pages: reviews operations (evidence: `README.md`)
- Admin Pages → Admin API: requests admin data (evidence: `README.md`)
- Admin API → Application Database: reads and writes (evidence: `README.md`)
- FastAPI Application → Authentication API: registers router (evidence: `backend/app/main.py`)
- FastAPI Application → Enrollment API: registers router (evidence: `backend/app/main.py`)
- FastAPI Application → Admin API: registers router (evidence: `backend/app/main.py`)
- FastAPI Application → Program Catalog API: registers router (evidence: `backend/app/main.py`)
- FastAPI Application → Payment API: registers router (evidence: `backend/app/main.py`)
- FastAPI Application → Contact API: registers router (evidence: `backend/app/main.py`)
- FastAPI Application → Certificate Lookup API: registers router (evidence: `backend/app/main.py`)
- FastAPI Application → Application Database: initializes schema (evidence: `backend/app/main.py`)
- Student → Contact API: sends inquiry (evidence: `README.md`)
- Visitor → Certificate Lookup API: checks certificate (evidence: `README.md`)
- Payment API → Razorpay: processes payment (evidence: `README.md`)
