# kodekracker/online-survey-system architecture

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

- Interactive diagram: https://gitdiagram.com/kodekracker/online-survey-system
- Repository: https://github.com/kodekracker/online-survey-system

## Overview

SurveyBoard is presented as an online survey creation and publishing product with graphical, real-time results, but the checked-in application tree and sampled source show only an ASP.NET MVC shell and account management. No survey authoring, response collection, or analytics implementation is visible, so those documented capabilities are noted without inventing components or links. The shown runtime centers on MVC startup/routing, home pages, and local identity authentication; external login providers are configured only as commented examples.

Main entry points: [`Online-Survey-System/Controllers/AccountController.cs`](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Controllers/AccountController.cs) (Account actions), [`Online-Survey-System/Global.asax.cs`](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Global.asax.cs) (MVC startup), [`Online-Survey-System/App_Start/Startup.Auth.cs`](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/App_Start/Startup.Auth.cs) (Cookie auth), [`Online-Survey-System/App_Start/RouteConfig.cs`](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/App_Start/RouteConfig.cs) (Default routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["MVC web shell"]
  node_mvc_start["MVC startup<br/>[Global.asax.cs]"]
  node_routes["Default routing<br/>[RouteConfig.cs]"]
  node_filters["Error filter<br/>[FilterConfig.cs]"]
  node_bundles["Asset bundles<br/>[BundleConfig.cs]"]
  node_home["Home pages<br/>[HomeController.cs]"]
  node_home_views["Home screens"]
end

subgraph group_identity["Account identity"]
  node_account["Account actions"]
  node_account_models["Account view models"]
  node_identity_context["Identity context<br/>[IdentityModels.cs]"]
  node_account_views["Account screens"]
  node_identity_store[("Identity user store")]
end

subgraph group_auth["Authentication"]
  node_startup["OWIN startup<br/>[Startup.cs]"]
  node_auth_config["Cookie auth<br/>[Startup.Auth.cs]"]
  node_external_login["External login providers"]
end

node_visitor(("Site visitor"))

node_visitor -.->|"opens site"| node_mvc_start
node_mvc_start -->|"registers filters"| node_filters
node_mvc_start -->|"registers routes"| node_routes
node_mvc_start -->|"registers bundles"| node_bundles
node_routes -.->|"routes default"| node_home
node_home -.->|"returns views"| node_home_views
node_account -.->|"accepts models"| node_account_models
node_account -.->|"returns views"| node_account_views
node_account -->|"manages users"| node_identity_store
node_startup -->|"configures auth"| node_auth_config
node_auth_config -.->|"provider examples"| node_external_login
node_account -.->|"uses sign-in"| node_auth_config

click node_mvc_start "https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Global.asax.cs"
click node_routes "https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/App_Start/RouteConfig.cs"
click node_filters "https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/App_Start/FilterConfig.cs"
click node_bundles "https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/App_Start/BundleConfig.cs"
click node_home "https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Controllers/HomeController.cs"
click node_account "https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Controllers/AccountController.cs"
click node_account_models "https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Models/AccountViewModels.cs"
click node_identity_context "https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Models/IdentityModels.cs"
click node_account_views "https://github.com/kodekracker/online-survey-system/tree/master/Online-Survey-System/Views/Account"
click node_home_views "https://github.com/kodekracker/online-survey-system/tree/master/Online-Survey-System/Views/Home"
click node_startup "https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Startup.cs"
click node_auth_config "https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/App_Start/Startup.Auth.cs"

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_mvc_start,node_routes,node_filters,node_bundles,node_home,node_home_views toneBlue
class node_account,node_account_models,node_identity_context,node_account_views,node_identity_store toneAmber
class node_startup,node_auth_config,node_external_login toneMint
class node_visitor toneIndigo
```

## Components

### MVC web shell

- [MVC startup](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Global.asax.cs): `Online-Survey-System/Global.asax.cs`
- [Default routing](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/App_Start/RouteConfig.cs): `Online-Survey-System/App_Start/RouteConfig.cs`
- [Error filter](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/App_Start/FilterConfig.cs): `Online-Survey-System/App_Start/FilterConfig.cs`
- [Asset bundles](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/App_Start/BundleConfig.cs): `Online-Survey-System/App_Start/BundleConfig.cs`
- [Home pages](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Controllers/HomeController.cs): `Online-Survey-System/Controllers/HomeController.cs`
- [Home screens](https://github.com/kodekracker/online-survey-system/tree/master/Online-Survey-System/Views/Home): `Online-Survey-System/Views/Home`

### Account identity

- [Account actions](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Controllers/AccountController.cs): `Online-Survey-System/Controllers/AccountController.cs`
- [Account view models](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Models/AccountViewModels.cs): `Online-Survey-System/Models/AccountViewModels.cs`
- [Identity context](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Models/IdentityModels.cs): `Online-Survey-System/Models/IdentityModels.cs`
- [Account screens](https://github.com/kodekracker/online-survey-system/tree/master/Online-Survey-System/Views/Account): `Online-Survey-System/Views/Account`
- **Identity user store**

### Authentication

- [OWIN startup](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/Startup.cs): `Online-Survey-System/Startup.cs`
- [Cookie auth](https://github.com/kodekracker/online-survey-system/blob/master/Online-Survey-System/App_Start/Startup.Auth.cs): `Online-Survey-System/App_Start/Startup.Auth.cs`
- **External login providers**

### Other components

- **Site visitor**

## Connections

- Site visitor → MVC startup: opens site
- MVC startup → Error filter: registers filters (evidence: `Online-Survey-System/Global.asax.cs`)
- MVC startup → Default routing: registers routes (evidence: `Online-Survey-System/Global.asax.cs`)
- MVC startup → Asset bundles: registers bundles (evidence: `Online-Survey-System/Global.asax.cs`)
- Default routing → Home pages: routes default
- Home pages → Home screens: returns views
- Account actions → Account view models: accepts models
- Account actions → Account screens: returns views
- Account actions → Identity user store: manages users (evidence: `Online-Survey-System/Controllers/AccountController.cs`)
- OWIN startup → Cookie auth: configures auth (evidence: `Online-Survey-System/Startup.cs`)
- Cookie auth → External login providers: provider examples (evidence: `Online-Survey-System/App_Start/Startup.Auth.cs`)
- Account actions → Cookie auth: uses sign-in
