# vinay4511/placement_portal architecture

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

- Interactive diagram: https://gitdiagram.com/vinay4511/placement_portal
- Repository: https://github.com/vinay4511/placement_portal

## Overview

Placement Portal is a Flask application for institute administrators, companies, and students. The central workflow is company registration and administrator approval, drive creation and approval, student browsing and application, then company status updates and student history. Role-specific route modules own these actions; shared forms validate input and SQLAlchemy models represent the persisted domain. The README documents additional administration and profile-management capabilities. The sampled source supports the main route, form, and persistence relationships; unsampled route details are represented only where README capabilities establish them.

Main entry points: [`app/__init__.py`](https://github.com/vinay4511/placement_portal/blob/main/app/__init__.py) (Flask app setup), [`app/models.py`](https://github.com/vinay4511/placement_portal/blob/main/app/models.py) (Placement domain models), [`app/routes/auth.py`](https://github.com/vinay4511/placement_portal/blob/main/app/routes/auth.py) (Authentication), [`app/routes/company.py`](https://github.com/vinay4511/placement_portal/blob/main/app/routes/company.py) (Company workflows)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application and identity"]
  node_factory["Flask app setup<br/>[__init__.py]"]
  node_config["App configuration<br/>[config.py]"]
  node_auth["Authentication<br/>[auth.py]"]
  node_forms["Input forms<br/>[forms.py]"]
  node_error_routes["Error handling<br/>[errors.py]"]
  node_pages["Role-based pages"]
end

subgraph group_admin["Institute administration"]
  node_admin_routes["Admin workflows<br/>[admin.py]"]
end

subgraph group_recruit["Company recruitment"]
  node_company_routes["Company workflows<br/>[company.py]"]
end

subgraph group_student["Student placement"]
  node_student_routes["Student workflows<br/>[student.py]"]
end

subgraph group_data["Domain and persistence"]
  node_domain["Placement domain models<br/>[models.py]"]
  node_sqlite[("SQLite database<br/>[mybase.db]")]
end

node_people(("Portal users"))

node_people -->|"sign in or register"| node_auth
node_factory -->|"loads settings"| node_config
node_factory -->|"registers routes"| node_auth
node_factory -->|"registers routes"| node_admin_routes
node_factory -->|"registers routes"| node_company_routes
node_factory -->|"registers routes"| node_student_routes
node_factory -->|"registers handlers"| node_error_routes
node_factory -->|"creates schema"| node_domain
node_auth -->|"validates input"| node_forms
node_auth -->|"queries and creates accounts"| node_domain
node_auth -->|"renders pages"| node_pages
node_people -->|"manage portal"| node_admin_routes
node_admin_routes -->|"reviews and manages records"| node_domain
node_people -->|"manage drives"| node_company_routes
node_company_routes -->|"validates drive and profile input"| node_forms
node_company_routes -->|"creates drives and updates applications"| node_domain
node_people -->|"browse and apply"| node_student_routes
node_student_routes -->|"validates profile input"| node_forms
node_student_routes -->|"checks drives and records applications"| node_domain
node_domain -->|"persists records"| node_sqlite
node_company_routes -->|"renders pages"| node_pages
node_student_routes -->|"renders pages"| node_pages

click node_factory "https://github.com/vinay4511/placement_portal/blob/main/app/__init__.py"
click node_config "https://github.com/vinay4511/placement_portal/blob/main/config.py"
click node_auth "https://github.com/vinay4511/placement_portal/blob/main/app/routes/auth.py"
click node_forms "https://github.com/vinay4511/placement_portal/blob/main/app/forms.py"
click node_admin_routes "https://github.com/vinay4511/placement_portal/blob/main/app/routes/admin.py"
click node_company_routes "https://github.com/vinay4511/placement_portal/blob/main/app/routes/company.py"
click node_student_routes "https://github.com/vinay4511/placement_portal/blob/main/app/routes/student.py"
click node_error_routes "https://github.com/vinay4511/placement_portal/blob/main/app/routes/errors.py"
click node_domain "https://github.com/vinay4511/placement_portal/blob/main/app/models.py"
click node_sqlite "https://github.com/vinay4511/placement_portal/blob/main/instance/mybase.db"
click node_pages "https://github.com/vinay4511/placement_portal/tree/main/app/templates"

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_factory,node_config,node_auth,node_forms,node_error_routes,node_pages,node_people toneBlue
class node_admin_routes toneAmber
class node_company_routes toneMint
class node_student_routes toneRose
class node_domain,node_sqlite toneIndigo
```

## Components

### Application and identity

- [Flask app setup](https://github.com/vinay4511/placement_portal/blob/main/app/__init__.py): `app/__init__.py`
- [App configuration](https://github.com/vinay4511/placement_portal/blob/main/config.py): `config.py`
- [Authentication](https://github.com/vinay4511/placement_portal/blob/main/app/routes/auth.py): `app/routes/auth.py`
- [Input forms](https://github.com/vinay4511/placement_portal/blob/main/app/forms.py): `app/forms.py`
- [Error handling](https://github.com/vinay4511/placement_portal/blob/main/app/routes/errors.py): `app/routes/errors.py`
- [Role-based pages](https://github.com/vinay4511/placement_portal/tree/main/app/templates): `app/templates`

### Institute administration

- [Admin workflows](https://github.com/vinay4511/placement_portal/blob/main/app/routes/admin.py): `app/routes/admin.py`

### Company recruitment

- [Company workflows](https://github.com/vinay4511/placement_portal/blob/main/app/routes/company.py): `app/routes/company.py`

### Student placement

- [Student workflows](https://github.com/vinay4511/placement_portal/blob/main/app/routes/student.py): `app/routes/student.py`

### Domain and persistence

- [Placement domain models](https://github.com/vinay4511/placement_portal/blob/main/app/models.py): `app/models.py`
- [SQLite database](https://github.com/vinay4511/placement_portal/blob/main/instance/mybase.db): `instance/mybase.db`

### Other components

- **Portal users**

## Connections

- Portal users → Authentication: sign in or register (evidence: `README.md`)
- Flask app setup → App configuration: loads settings (evidence: `app/__init__.py`)
- Flask app setup → Authentication: registers routes (evidence: `app/__init__.py`)
- Flask app setup → Admin workflows: registers routes (evidence: `app/__init__.py`)
- Flask app setup → Company workflows: registers routes (evidence: `app/__init__.py`)
- Flask app setup → Student workflows: registers routes (evidence: `app/__init__.py`)
- Flask app setup → Error handling: registers handlers (evidence: `app/__init__.py`)
- Flask app setup → Placement domain models: creates schema (evidence: `app/__init__.py`)
- Authentication → Input forms: validates input (evidence: `app/routes/auth.py`)
- Authentication → Placement domain models: queries and creates accounts (evidence: `app/routes/auth.py`)
- Authentication → Role-based pages: renders pages (evidence: `app/routes/auth.py`)
- Portal users → Admin workflows: manage portal (evidence: `README.md`)
- Admin workflows → Placement domain models: reviews and manages records (evidence: `app/routes/admin.py`)
- Portal users → Company workflows: manage drives (evidence: `README.md`)
- Company workflows → Input forms: validates drive and profile input (evidence: `app/routes/company.py`)
- Company workflows → Placement domain models: creates drives and updates applications (evidence: `app/routes/company.py`)
- Portal users → Student workflows: browse and apply (evidence: `README.md`)
- Student workflows → Input forms: validates profile input (evidence: `app/routes/student.py`)
- Student workflows → Placement domain models: checks drives and records applications (evidence: `app/routes/student.py`)
- Placement domain models → SQLite database: persists records
- Company workflows → Role-based pages: renders pages (evidence: `app/routes/company.py`)
- Student workflows → Role-based pages: renders pages (evidence: `app/routes/student.py`)
