# akhil-882/btechcareerguide-online-dashboard architecture

> Architecture diagram of the GitHub repository akhil-882/btechcareerguide-online-dashboard, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/akhil-882/btechcareerguide-online-dashboard
- Repository: https://github.com/akhil-882/btechcareerguide-online-dashboard

## Overview

This repository implements a career-guidance dashboard with a React client and Laravel API. Users authenticate and access job, project, profile, booking, and career resources; administrators manage jobs, projects, materials, bookings, and transactions. The client routes role-protected experiences and uses feature hooks to make API requests. The API includes authentication, email verification, token handling, job and payment services, and persistent user data. The README provides no capability detail, and most route/controller source was not sampled, so those backend connections are intentionally not inferred.

Main entry points: [`online-dashboard-api/app/Services/AuthService.php`](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/AuthService.php) (Authentication service), [`online-dashboard-app/src/App.jsx`](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-app/src/App.jsx) (Client routes), [`online-dashboard-app/src/api/authApi.js`](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-app/src/api/authApi.js) (Auth API client), [`online-dashboard-app/src/api/projectApi.js`](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-app/src/api/projectApi.js) (Project API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_app["Client routes<br/>[App.jsx]"]
  node_marketing["Marketing and signup"]
  node_otherapi["Other API clients"]
end

subgraph group_auth["Identity services"]
  node_authhook["Auth actions<br/>[useAuth.js]"]
  node_authapi["Auth API client<br/>[authApi.js]"]
  node_authcontroller["Authentication endpoints"]
  node_authservice["Authentication service<br/>[AuthService.php]"]
  node_emailverify["Email verification"]
  node_tokens["Token service<br/>[TokenService.php]"]
  node_authinterface["Auth contract"]
  node_tokeninterface["Token contract"]
end

subgraph group_careers["Career dashboard"]
  node_userfeatures["User dashboard"]
  node_adminfeatures["Admin console"]
  node_projecthook["Project actions<br/>[useProject.js]"]
  node_projectapi["Project API client<br/>[projectApi.js]"]
  node_jobservice["Job service<br/>[JobService.php]"]
  node_jobinterface["Job contract"]
end

subgraph group_backend["API and persistence"]
  node_routes["API routes<br/>[api.php]"]
  node_usersrepo["User repository<br/>[UserRepository.php]"]
  node_usermodel[("User accounts<br/>[User.php]")]
  node_payments["Payment services<br/>[PaymentService.php]"]
  node_paymentgateway["Razorpay gateway"]
  node_records[("Domain records")]
end

node_visitor(("Dashboard visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_marketing
node_app -->|"routes to"| node_userfeatures
node_app -->|"routes to"| node_adminfeatures
node_authhook -->|"calls"| node_authapi
node_projecthook -->|"calls"| node_projectapi
node_authcontroller -.->|"delegates"| node_authservice
node_authservice -->|"uses"| node_usersrepo
node_authservice -->|"verifies email"| node_emailverify
node_authservice -->|"issues tokens"| node_tokeninterface
node_authservice -->|"authenticates"| node_usermodel
node_usersrepo -.->|"manages users"| node_usermodel
node_authservice -->|"implements"| node_authinterface
node_jobservice -.->|"implements"| node_jobinterface
node_payments -.->|"uses gateway"| node_paymentgateway
node_authapi -.->|"requests"| node_routes
node_projectapi -.->|"requests"| node_routes

click node_app "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-app/src/App.jsx"
click node_marketing "https://github.com/akhil-882/btechcareerguide-online-dashboard/tree/main/online-dashboard-app/src/features/marketing"
click node_userfeatures "https://github.com/akhil-882/btechcareerguide-online-dashboard/tree/main/online-dashboard-app/src/features/user"
click node_adminfeatures "https://github.com/akhil-882/btechcareerguide-online-dashboard/tree/main/online-dashboard-app/src/features/admin"
click node_authhook "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-app/src/hooks/useAuth.js"
click node_authapi "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-app/src/api/authApi.js"
click node_projecthook "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-app/src/hooks/useProject.js"
click node_projectapi "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-app/src/api/projectApi.js"
click node_otherapi "https://github.com/akhil-882/btechcareerguide-online-dashboard/tree/main/online-dashboard-app/src/api"
click node_routes "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/routes/api.php"
click node_authcontroller "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Http/Controllers/AuthenticationController.php"
click node_authservice "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/AuthService.php"
click node_emailverify "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/EmailVerificationService.php"
click node_tokens "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/TokenService.php"
click node_authinterface "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/Contracts/AuthServiceInterface.php"
click node_tokeninterface "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/Contracts/TokenServiceInterface.php"
click node_usersrepo "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Repositories/UserRepository.php"
click node_usermodel "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Models/User.php"
click node_jobservice "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/JobService.php"
click node_jobinterface "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/Contracts/JobServiceInterface.php"
click node_payments "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/PaymentService.php"
click node_paymentgateway "https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/Gateways/RazorpayGateway.php"
click node_records "https://github.com/akhil-882/btechcareerguide-online-dashboard/tree/main/online-dashboard-api/app/Models"

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_marketing,node_otherapi toneBlue
class node_authhook,node_authapi,node_authcontroller,node_authservice,node_emailverify,node_tokens,node_authinterface,node_tokeninterface toneAmber
class node_userfeatures,node_adminfeatures,node_projecthook,node_projectapi,node_jobservice,node_jobinterface toneMint
class node_routes,node_usersrepo,node_usermodel,node_payments,node_paymentgateway,node_records toneRose
class node_visitor toneIndigo
```

## Components

### Web client

- [Client routes](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-app/src/App.jsx): `online-dashboard-app/src/App.jsx`
- [Marketing and signup](https://github.com/akhil-882/btechcareerguide-online-dashboard/tree/main/online-dashboard-app/src/features/marketing): `online-dashboard-app/src/features/marketing`
- [Other API clients](https://github.com/akhil-882/btechcareerguide-online-dashboard/tree/main/online-dashboard-app/src/api): `online-dashboard-app/src/api`

### Identity services

- [Auth actions](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-app/src/hooks/useAuth.js): `online-dashboard-app/src/hooks/useAuth.js`
- [Auth API client](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-app/src/api/authApi.js): `online-dashboard-app/src/api/authApi.js`
- [Authentication endpoints](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Http/Controllers/AuthenticationController.php): `online-dashboard-api/app/Http/Controllers/AuthenticationController.php`
- [Authentication service](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/AuthService.php): `online-dashboard-api/app/Services/AuthService.php`
- [Email verification](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/EmailVerificationService.php): `online-dashboard-api/app/Services/EmailVerificationService.php`
- [Token service](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/TokenService.php): `online-dashboard-api/app/Services/TokenService.php`
- [Auth contract](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/Contracts/AuthServiceInterface.php): `online-dashboard-api/app/Services/Contracts/AuthServiceInterface.php`
- [Token contract](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/Contracts/TokenServiceInterface.php): `online-dashboard-api/app/Services/Contracts/TokenServiceInterface.php`

### Career dashboard

- [User dashboard](https://github.com/akhil-882/btechcareerguide-online-dashboard/tree/main/online-dashboard-app/src/features/user): `online-dashboard-app/src/features/user`
- [Admin console](https://github.com/akhil-882/btechcareerguide-online-dashboard/tree/main/online-dashboard-app/src/features/admin): `online-dashboard-app/src/features/admin`
- [Project actions](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-app/src/hooks/useProject.js): `online-dashboard-app/src/hooks/useProject.js`
- [Project API client](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-app/src/api/projectApi.js): `online-dashboard-app/src/api/projectApi.js`
- [Job service](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/JobService.php): `online-dashboard-api/app/Services/JobService.php`
- [Job contract](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/Contracts/JobServiceInterface.php): `online-dashboard-api/app/Services/Contracts/JobServiceInterface.php`

### API and persistence

- [API routes](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/routes/api.php): `online-dashboard-api/routes/api.php`
- [User repository](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Repositories/UserRepository.php): `online-dashboard-api/app/Repositories/UserRepository.php`
- [User accounts](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Models/User.php): `online-dashboard-api/app/Models/User.php`
- [Payment services](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/PaymentService.php): `online-dashboard-api/app/Services/PaymentService.php`
- [Razorpay gateway](https://github.com/akhil-882/btechcareerguide-online-dashboard/blob/main/online-dashboard-api/app/Services/Gateways/RazorpayGateway.php): `online-dashboard-api/app/Services/Gateways/RazorpayGateway.php`
- [Domain records](https://github.com/akhil-882/btechcareerguide-online-dashboard/tree/main/online-dashboard-api/app/Models): `online-dashboard-api/app/Models`

### Other components

- **Dashboard visitor**

## Connections

- Dashboard visitor → Client routes: opens (evidence: `online-dashboard-app/src/App.jsx`)
- Client routes → Marketing and signup: routes to (evidence: `online-dashboard-app/src/App.jsx`)
- Client routes → User dashboard: routes to (evidence: `online-dashboard-app/src/App.jsx`)
- Client routes → Admin console: routes to (evidence: `online-dashboard-app/src/App.jsx`)
- Auth actions → Auth API client: calls (evidence: `online-dashboard-app/src/hooks/useAuth.js`)
- Project actions → Project API client: calls (evidence: `online-dashboard-app/src/hooks/useProject.js`)
- Authentication endpoints → Authentication service: delegates
- Authentication service → User repository: uses (evidence: `online-dashboard-api/app/Services/AuthService.php`)
- Authentication service → Email verification: verifies email (evidence: `online-dashboard-api/app/Services/AuthService.php`)
- Authentication service → Token contract: issues tokens (evidence: `online-dashboard-api/app/Services/AuthService.php`)
- Authentication service → User accounts: authenticates (evidence: `online-dashboard-api/app/Services/AuthService.php`)
- User repository → User accounts: manages users
- Authentication service → Auth contract: implements (evidence: `online-dashboard-api/app/Services/AuthService.php`)
- Job service → Job contract: implements
- Payment services → Razorpay gateway: uses gateway
- Auth API client → API routes: requests
- Project API client → API routes: requests
