# murtazatanveer/fast-api-backend-development architecture

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

- Interactive diagram: https://gitdiagram.com/murtazatanveer/fast-api-backend-development
- Repository: https://github.com/murtazatanveer/fast-api-backend-development

## Overview

This tree is a collection of independent Python and React examples, not one integrated product; there is no README describing an overarching workflow. The most substantial product flow is the Patients CRUD frontend’s authentication and dashboard, alongside a separate FastAPI JWT-authentication and patient-management system. Other distinct examples cover Supabase-backed products, review sentiment analysis, and small routing demonstrations. Arrows use the supplied excerpts and SOURCE INDEX references; links for unsampled modules are limited to those references.

Main entry points: [`PatientsCRUDApp/Services`](https://github.com/murtazatanveer/fast-api-backend-development/tree/main/PatientsCRUDApp/Services) (Auth services), [`PatientsCRUDFrontend/my-react-app/src/App.jsx`](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDFrontend/my-react-app/src/App.jsx) (React app routing), [`PatientsCRUDApp/main.py`](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/main.py) (FastAPI auth app), [`PatientsCRUDApp/Controllers/authController.py`](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/Controllers/authController.py) (Auth controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Patients CRUD UI"]
  node_app["React app routing<br/>[App.jsx]"]
  node_authpages["Login and signup<br/>[LoginPage.jsx]"]
  node_authhook["Auth hook<br/>[useAuth.js]"]
  node_api["Auth API client<br/>[authApi.js]"]
  node_dashboard["Patient dashboard<br/>[DashboardPage.jsx]"]
end

subgraph group_authapp["Firestore Auth API"]
  node_backend["FastAPI auth app<br/>[main.py]"]
  node_authroutes["Auth routes<br/>[authRoutes.py]"]
  node_authcontroller["Auth controller<br/>[authController.py]"]
  node_authservices["Auth services"]
  node_authmodels["Auth models<br/>[authModels.py]"]
  node_firestore[("Firestore client")]
  node_security["Token security<br/>[security.py]"]
  node_dependency["Auth dependency<br/>[authDependency.py]"]
end

subgraph group_jwtsystem["JWT Patient API"]
  node_jwtmain["JWT API entry<br/>[main.py]"]
  node_jwtroutes["Auth and patient routes"]
  node_jwtcontrollers["Auth and patient controllers"]
  node_jwtservices["Auth and patient services"]
  node_jwtschemas["Request schemas"]
  node_jwtmodels["Auth data models"]
  node_jwtstore[("Supabase database client<br/>[supabaseClient.py]")]
end

subgraph group_examples["Other API Examples"]
  node_supabasemain["Product and user API<br/>[main.py]"]
  node_supabaseschemas["Product and user schemas"]
  node_supabasemodels["Product and user models"]
  node_reviews["Sentiment analysis API<br/>[main.py]"]
  node_fastapi["Routing demo<br/>[main.py]"]
  node_routeexamples["Product and cart routes"]
end

node_user(("User"))

node_user -->|"uses"| node_app
node_app -->|"routes to"| node_authpages
node_app -->|"routes to"| node_dashboard
node_authpages -->|"uses"| node_authhook
node_authhook -->|"calls"| node_api
node_api -.->|"sends requests"| node_backend
node_backend -->|"registers"| node_authroutes
node_authroutes -->|"routes to"| node_authcontroller
node_authcontroller -->|"calls"| node_authservices
node_authcontroller -->|"accepts"| node_authmodels
node_authservices -->|"uses"| node_authmodels
node_authservices -->|"accesses"| node_firestore
node_authservices -->|"uses"| node_security
node_backend -->|"uses"| node_dependency
node_dependency -->|"decodes tokens"| node_security
node_dependency -->|"checks user"| node_firestore
node_jwtmain -->|"registers"| node_jwtroutes
node_jwtroutes -->|"routes to"| node_jwtcontrollers
node_jwtcontrollers -->|"calls"| node_jwtservices
node_jwtcontrollers -->|"accepts"| node_jwtschemas
node_jwtservices -->|"uses"| node_jwtmodels
node_jwtservices -->|"uses"| node_jwtstore
node_supabasemain -->|"accepts"| node_supabaseschemas
node_supabasemain -->|"queries"| node_supabasemodels
node_user -.->|"submits reviews"| node_reviews
node_fastapi -->|"registers"| node_routeexamples

click node_app "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDFrontend/my-react-app/src/App.jsx"
click node_authpages "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDFrontend/my-react-app/src/Authentication/LoginPage.jsx"
click node_authhook "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDFrontend/my-react-app/src/Authentication/hooks/useAuth.js"
click node_api "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDFrontend/my-react-app/src/Utils/authApi.js"
click node_dashboard "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDFrontend/my-react-app/src/Dashboard/DashboardPage.jsx"
click node_backend "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/main.py"
click node_authroutes "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/routes/authRoutes.py"
click node_authcontroller "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/Controllers/authController.py"
click node_authservices "https://github.com/murtazatanveer/fast-api-backend-development/tree/main/PatientsCRUDApp/Services"
click node_authmodels "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/Models/authModels.py"
click node_firestore "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/Configuration/firestore_client.py"
click node_security "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/Utils/security.py"
click node_dependency "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/Dependencies/authDependency.py"
click node_jwtmain "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/JWTAuthenticationSystem/main.py"
click node_jwtroutes "https://github.com/murtazatanveer/fast-api-backend-development/tree/main/JWTAuthenticationSystem/Routes"
click node_jwtcontrollers "https://github.com/murtazatanveer/fast-api-backend-development/tree/main/JWTAuthenticationSystem/Controllers"
click node_jwtservices "https://github.com/murtazatanveer/fast-api-backend-development/tree/main/JWTAuthenticationSystem/Services"
click node_jwtschemas "https://github.com/murtazatanveer/fast-api-backend-development/tree/main/JWTAuthenticationSystem/Schemas"
click node_jwtmodels "https://github.com/murtazatanveer/fast-api-backend-development/tree/main/JWTAuthenticationSystem/Models"
click node_jwtstore "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/JWTAuthenticationSystem/Configuration/supabaseClient.py"
click node_supabasemain "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/SupabasePostgreSQLLearning/main.py"
click node_supabaseschemas "https://github.com/murtazatanveer/fast-api-backend-development/tree/main/SupabasePostgreSQLLearning/Schemas"
click node_supabasemodels "https://github.com/murtazatanveer/fast-api-backend-development/tree/main/SupabasePostgreSQLLearning/Models"
click node_reviews "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/ReviewsSentimentAnalysis/main.py"
click node_fastapi "https://github.com/murtazatanveer/fast-api-backend-development/blob/main/FastAPIRouting/main.py"
click node_routeexamples "https://github.com/murtazatanveer/fast-api-backend-development/tree/main/FastAPIRouting/routes"

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_authpages,node_authhook,node_api,node_dashboard,node_user toneBlue
class node_backend,node_authroutes,node_authcontroller,node_authservices,node_authmodels,node_firestore,node_security,node_dependency toneAmber
class node_jwtmain,node_jwtroutes,node_jwtcontrollers,node_jwtservices,node_jwtschemas,node_jwtmodels,node_jwtstore toneMint
class node_supabasemain,node_supabaseschemas,node_supabasemodels,node_reviews,node_fastapi,node_routeexamples toneRose
```

## Components

### Patients CRUD UI

- [React app routing](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDFrontend/my-react-app/src/App.jsx): `PatientsCRUDFrontend/my-react-app/src/App.jsx`
- [Login and signup](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDFrontend/my-react-app/src/Authentication/LoginPage.jsx): `PatientsCRUDFrontend/my-react-app/src/Authentication/LoginPage.jsx`
- [Auth hook](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDFrontend/my-react-app/src/Authentication/hooks/useAuth.js): `PatientsCRUDFrontend/my-react-app/src/Authentication/hooks/useAuth.js`
- [Auth API client](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDFrontend/my-react-app/src/Utils/authApi.js): `PatientsCRUDFrontend/my-react-app/src/Utils/authApi.js`
- [Patient dashboard](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDFrontend/my-react-app/src/Dashboard/DashboardPage.jsx): `PatientsCRUDFrontend/my-react-app/src/Dashboard/DashboardPage.jsx`

### Firestore Auth API

- [FastAPI auth app](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/main.py): `PatientsCRUDApp/main.py`
- [Auth routes](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/routes/authRoutes.py): `PatientsCRUDApp/routes/authRoutes.py`
- [Auth controller](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/Controllers/authController.py): `PatientsCRUDApp/Controllers/authController.py`
- [Auth services](https://github.com/murtazatanveer/fast-api-backend-development/tree/main/PatientsCRUDApp/Services): `PatientsCRUDApp/Services`
- [Auth models](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/Models/authModels.py): `PatientsCRUDApp/Models/authModels.py`
- [Firestore client](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/Configuration/firestore_client.py): `PatientsCRUDApp/Configuration/firestore_client.py`
- [Token security](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/Utils/security.py): `PatientsCRUDApp/Utils/security.py`
- [Auth dependency](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/PatientsCRUDApp/Dependencies/authDependency.py): `PatientsCRUDApp/Dependencies/authDependency.py`

### JWT Patient API

- [JWT API entry](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/JWTAuthenticationSystem/main.py): `JWTAuthenticationSystem/main.py`
- [Auth and patient routes](https://github.com/murtazatanveer/fast-api-backend-development/tree/main/JWTAuthenticationSystem/Routes): `JWTAuthenticationSystem/Routes`
- [Auth and patient controllers](https://github.com/murtazatanveer/fast-api-backend-development/tree/main/JWTAuthenticationSystem/Controllers): `JWTAuthenticationSystem/Controllers`
- [Auth and patient services](https://github.com/murtazatanveer/fast-api-backend-development/tree/main/JWTAuthenticationSystem/Services): `JWTAuthenticationSystem/Services`
- [Request schemas](https://github.com/murtazatanveer/fast-api-backend-development/tree/main/JWTAuthenticationSystem/Schemas): `JWTAuthenticationSystem/Schemas`
- [Auth data models](https://github.com/murtazatanveer/fast-api-backend-development/tree/main/JWTAuthenticationSystem/Models): `JWTAuthenticationSystem/Models`
- [Supabase database client](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/JWTAuthenticationSystem/Configuration/supabaseClient.py): `JWTAuthenticationSystem/Configuration/supabaseClient.py`

### Other API Examples

- [Product and user API](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/SupabasePostgreSQLLearning/main.py): `SupabasePostgreSQLLearning/main.py`
- [Product and user schemas](https://github.com/murtazatanveer/fast-api-backend-development/tree/main/SupabasePostgreSQLLearning/Schemas): `SupabasePostgreSQLLearning/Schemas`
- [Product and user models](https://github.com/murtazatanveer/fast-api-backend-development/tree/main/SupabasePostgreSQLLearning/Models): `SupabasePostgreSQLLearning/Models`
- [Sentiment analysis API](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/ReviewsSentimentAnalysis/main.py): `ReviewsSentimentAnalysis/main.py`
- [Routing demo](https://github.com/murtazatanveer/fast-api-backend-development/blob/main/FastAPIRouting/main.py): `FastAPIRouting/main.py`
- [Product and cart routes](https://github.com/murtazatanveer/fast-api-backend-development/tree/main/FastAPIRouting/routes): `FastAPIRouting/routes`

### Other components

- **User**

## Connections

- User → React app routing: uses
- React app routing → Login and signup: routes to (evidence: `PatientsCRUDFrontend/my-react-app/src/App.jsx`)
- React app routing → Patient dashboard: routes to (evidence: `PatientsCRUDFrontend/my-react-app/src/App.jsx`)
- Login and signup → Auth hook: uses (evidence: `PatientsCRUDFrontend/my-react-app/src/Authentication/hooks/useAuth.js`)
- Auth hook → Auth API client: calls (evidence: `PatientsCRUDFrontend/my-react-app/src/Authentication/hooks/useAuth.js`)
- Auth API client → FastAPI auth app: sends requests
- FastAPI auth app → Auth routes: registers (evidence: `PatientsCRUDApp/main.py`)
- Auth routes → Auth controller: routes to (evidence: `PatientsCRUDApp/routes/authRoutes.py`)
- Auth controller → Auth services: calls (evidence: `PatientsCRUDApp/Controllers/authController.py`)
- Auth controller → Auth models: accepts (evidence: `PatientsCRUDApp/Controllers/authController.py`)
- Auth services → Auth models: uses (evidence: `PatientsCRUDApp/Services/authLogin.py`)
- Auth services → Firestore client: accesses (evidence: `PatientsCRUDApp/Services/authLogin.py`)
- Auth services → Token security: uses (evidence: `PatientsCRUDApp/Services/authLogin.py`)
- FastAPI auth app → Auth dependency: uses (evidence: `PatientsCRUDApp/main.py`)
- Auth dependency → Token security: decodes tokens (evidence: `PatientsCRUDApp/Dependencies/authDependency.py`)
- Auth dependency → Firestore client: checks user (evidence: `PatientsCRUDApp/Dependencies/authDependency.py`)
- JWT API entry → Auth and patient routes: registers (evidence: `JWTAuthenticationSystem/main.py`)
- Auth and patient routes → Auth and patient controllers: routes to (evidence: `JWTAuthenticationSystem/Routes/patientsRoutes.py`)
- Auth and patient controllers → Auth and patient services: calls (evidence: `JWTAuthenticationSystem/Controllers/patientsController.py`)
- Auth and patient controllers → Request schemas: accepts (evidence: `JWTAuthenticationSystem/Controllers/patientsController.py`)
- Auth and patient services → Auth data models: uses (evidence: `JWTAuthenticationSystem/Services/loginService.py`)
- Auth and patient services → Supabase database client: uses (evidence: `JWTAuthenticationSystem/Services/loginService.py`)
- Product and user API → Product and user schemas: accepts (evidence: `SupabasePostgreSQLLearning/main.py`)
- Product and user API → Product and user models: queries (evidence: `SupabasePostgreSQLLearning/main.py`)
- User → Sentiment analysis API: submits reviews
- Routing demo → Product and cart routes: registers (evidence: `FastAPIRouting/main.py`)
