Skip to content

Commit

Permalink
6. Runtime view
Browse files Browse the repository at this point in the history
  • Loading branch information
adriiglz committed Feb 18, 2024
1 parent 26e9049 commit 9bb9172
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions docs/src/06_runtime_view.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,48 @@ ifndef::imagesdir[:imagesdir: ../images]

[[section-runtime-view]]
== Runtime View
=== User authentication
* Users will log in through the web interface of the application.
* The system stores in database (MongoDB) the users of the application. Any data relative to them is accessed via the database of the system and displayed to them on the web interface.

=== Access to user data via API
* Clients access the users data through an API

[plantuml,"Sequence diagram",png]
----
entity Client
database API as "Users API"
Client -> API: Data querying request
API --> Client: Retrieved data
----

=== Access to questions data via API
* Clients access the questions data through an API

[plantuml,"Sequence diagram",png]
----
entity Client
database API as "Questions API"
Client -> API: Data querying request
API --> Client: Retrieved data
----

=== Game
* Users can play a Q&A game

[plantuml,"Sequence diagram",png]
----
actor User
entity App
database QAPI as "Questions API"
database UAPI as "Users API"
User -> App: Start Game
App -> QAPI: Get Questions
QAPI --> App: Send Questions
App -> User: Show Question
User --> App: Answer Question
App -> UAPI: Update User Data
----
[role="arc42help"]
****
.Contents
Expand Down

0 comments on commit 9bb9172

Please sign in to comment.