Skip to content

Commit

Permalink
added deployment diagram description
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias committed Mar 20, 2019
1 parent 5ececa8 commit bba55a9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/diagrams.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,26 @@ The Diagrams are drawn using [draw.io](https://.wwww.draw.io). You can download
**Deployment Diagram:**
![Deployment Diagram](/_static/img/deployment_diagram.png)

**Relations:**
- Mapswipe Client (App) - Realtime Database
- Mapswipe Client is requesting some `projects`, data of a specific `users.userId`. In case of a project selection a `groups.projectId.groupId` and `tasks.projectId.groupsId` will be requested
- Mapswipe Client will only write to Firebase Realtime Database in case of result generation.
- Mapswipe Client is writing to `results.projectId.groupId.userId1.` timestamp and resultCount when and how many results were generated.
- The result itself will be written to `results.projectId.groupId.userId1.taskId1.result`.
- Mapswipe Client is incrementing `users.userId.contributions`, `users.userId.distance` and `groups.projectId.groupId.completedCount`
- Mapswipe Client (Webseite) - Realtime Database
- Using the HTML-Import-Formular new project drafts will be written to `project_drafts.projectDraftId` in the Realtime Database
- import / projectCreation - Realtime Database
- requests `projectDrafts` from Realtime Database
- writes to `projects.projectId`, `groups.projectId` and `tasks.projectId`
- import / projectCreation - Postgres
- writes projectDraft, project, groups and tasks to Postgres
- tansfer_results - Realtime Database
- requests `results` from Realtime Database
- deletes `results` from Realtime Database
- tansfer_results - Postgres
- writes results to Postgres

---

**Current Data Structure - Firebase:**
Expand Down

0 comments on commit bba55a9

Please sign in to comment.