Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #18 from KyleMcMaster/feat/mermaid-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
seangwright authored Apr 26, 2020
2 parents c800752 + d4bc1e4 commit b763bdc
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
44 changes: 44 additions & 0 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Architecture

## Diagrams

Get all employees

```mermaid
sequenceDiagram
autonumber
Client->>Employees_Get: XHR Request
Employees_Get->>employees Table: query
employees Table-->>Employees_Get: entities
Employees_Get-->>Client: XHR Response (employees)
```

Create employee

```mermaid
sequenceDiagram
autonumber
Client->>Employees_Create: XHR Request (employee)
Employees_Create-->>employees Table: Function output (entity)
Employees_Create-->>Client: XHR Response (200)
```

Create payroll

```mermaid
sequenceDiagram
autonumber
Client->>Payroll_Create: XHR Request (payroll)
Payroll_Create->>payrolls Table: query (entity)
payrolls Table-->>Payroll_Create: entity
Payroll_Create->>payroll updates Queue: message (entity)
par
payroll updates Queue->>PayrollQueue_Update: message (entity)
PayrollQueue_Update->>employees Table: query (entity)
employees Table-->>PayrollQueue_Update: entity
PayrollQueue_Update->>employees Table: update (entity)
PayrollQueue_Update->>employeePayrolls Table: update (entity)
and
Payroll_Create-->>Client: XHR Response (payroll)
end
```
8 changes: 7 additions & 1 deletion payroll-processor.code-workspace
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"folders": [
{
"path": "docs",
"name": "docs"
},
{
"path": "payroll-processor-api",
"name": "api"
Expand Down Expand Up @@ -28,6 +32,7 @@
"payroll-processor-api": true,
"payroll-processor-client": true,
"payroll-processor-functions": true,
"docs": true,
"**/bin": true,
"**/obj": true,
"**/dist": true
Expand Down Expand Up @@ -60,7 +65,8 @@
"dozerg.tsimportsorter",
"stylelint.vscode-stylelint",
"k--kato.docomment",
"jchannon.csharpextensions"
"jchannon.csharpextensions",
"vstirbu.vscode-mermaid-preview"
]
}
}

0 comments on commit b763bdc

Please sign in to comment.