diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/01_2_iso-25010-topics-EN.drawio.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/01_2_iso-25010-topics-EN.drawio.png deleted file mode 100644 index 548f6fa5..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/01_2_iso-25010-topics-EN.drawio.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/05_building_blocks-EN.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/05_building_blocks-EN.png deleted file mode 100644 index 0862b64e..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/05_building_blocks-EN.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/08-Crosscutting-Concepts-Structure-EN.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/08-Crosscutting-Concepts-Structure-EN.png deleted file mode 100644 index 5598a0bb..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/08-Crosscutting-Concepts-Structure-EN.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Deployment diagram.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Deployment diagram.png deleted file mode 100644 index 9e1f77a4..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Deployment diagram.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Docker Container Setup.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Docker Container Setup.png deleted file mode 100644 index 490b4d3b..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Docker Container Setup.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 1.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 1.png deleted file mode 100644 index 765636ac..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 1.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 2.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 2.png deleted file mode 100644 index b617655c..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 2.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 3.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 3.png deleted file mode 100644 index 4b43a6b3..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 3.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 4.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 4.png deleted file mode 100644 index 28661f15..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 4.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 5.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 5.png deleted file mode 100644 index d2747718..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 5.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 6.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 6.png deleted file mode 100644 index 15d6872e..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Sequence diagram 6.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Technical Context Diagram.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Technical Context Diagram.png deleted file mode 100644 index 158ebfe4..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Technical Context Diagram.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Whitebox Overall System.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Whitebox Overall System.png deleted file mode 100644 index d7f37661..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/Whitebox Overall System.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/arc42-logo.png b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/arc42-logo.png deleted file mode 100644 index 88c76d06..00000000 Binary files a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/arc42-logo.png and /dev/null differ diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/domain-model-2.svg b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/domain-model-2.svg deleted file mode 100644 index 47fa765f..00000000 --- a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/domain-model-2.svg +++ /dev/null @@ -1 +0,0 @@ -An error has occured : java.lang.NullPointerExceptionDo me a favour. Disconnect me. I could be reworked, but I'll never be top of the line again. Diagram size: 59 lines / 1581 characters. PlantUML (1.2024.3) cannot parse result from dot/GraphViz. Please go to https://plantuml.com/graphviz-dot to check your GraphViz version. Java Runtime: Java(TM) SE Runtime EnvironmentJVM: Java HotSpot(TM) 64-Bit Server VMDefault Encoding: UTF-8Language: esCountry: ES PLANTUML_LIMIT_SIZE: 4096 This may be caused by :- a bug in PlantUML- a problem in GraphViz You should send this diagram and this image toplantuml@gmail.comorpost tohttps://plantuml.com/qato solve this issue.You can try to turn around this issue by simplifing your diagram. java.lang.NullPointerExceptionnet.sourceforge.plantuml.svek.SvekLine.<init>(SvekLine.java:257)net.sourceforge.plantuml.svek.GeneralImageBuilder.buildImage(GeneralImageBuilder.java:450)net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFileInternal(CucaDiagramFileMakerSvek.java:135)net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFile(CucaDiagramFileMakerSvek.java:100)net.atmp.CucaDiagram.exportDiagramInternal(CucaDiagram.java:463)net.sourceforge.plantuml.classdiagram.ClassDiagram.exportDiagramInternal(ClassDiagram.java:114)net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:167)net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:236)org.asciidoctor.diagram.plantuml.PlantUML.generate(PlantUML.java:188)org.asciidoctor.diagram.CommandProcessor.processRequest(CommandProcessor.java:40)org.asciidoctor.diagram.AbstractCommandServer.processRequests(AbstractCommandServer.java:47)org.asciidoctor.diagram.StdInOutCommandServer.processRequests(StdInOutCommandServer.java:23)org.asciidoctor.diagram.StdInOutCommandServer.main(StdInOutCommandServer.java:13) \ No newline at end of file diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/domain-model.svg b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/domain-model.svg deleted file mode 100644 index eeae0ed2..00000000 --- a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/images/domain-model.svg +++ /dev/null @@ -1 +0,0 @@ -An error has occured : java.lang.NullPointerExceptionWe've been through worst Diagram size: 423 lines / 12638 characters. PlantUML (1.2024.3) cannot parse result from dot/GraphViz. Please go to https://plantuml.com/graphviz-dot to check your GraphViz version. Java Runtime: Java(TM) SE Runtime EnvironmentJVM: Java HotSpot(TM) 64-Bit Server VMDefault Encoding: UTF-8Language: esCountry: ES PLANTUML_LIMIT_SIZE: 4096 This may be caused by :- a bug in PlantUML- a problem in GraphViz You should send this diagram and this image toplantuml@gmail.comorpost tohttps://plantuml.com/qato solve this issue.You can try to turn around this issue by simplifing your diagram. java.lang.NullPointerExceptionnet.sourceforge.plantuml.svek.SvekLine.<init>(SvekLine.java:257)net.sourceforge.plantuml.svek.GeneralImageBuilder.buildImage(GeneralImageBuilder.java:450)net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFileInternal(CucaDiagramFileMakerSvek.java:135)net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFile(CucaDiagramFileMakerSvek.java:100)net.atmp.CucaDiagram.exportDiagramInternal(CucaDiagram.java:463)net.sourceforge.plantuml.classdiagram.ClassDiagram.exportDiagramInternal(ClassDiagram.java:114)net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:167)net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:236)org.asciidoctor.diagram.plantuml.PlantUML.generate(PlantUML.java:188)org.asciidoctor.diagram.CommandProcessor.processRequest(CommandProcessor.java:40)org.asciidoctor.diagram.AbstractCommandServer.processRequests(AbstractCommandServer.java:47)org.asciidoctor.diagram.StdInOutCommandServer.processRequests(StdInOutCommandServer.java:23)org.asciidoctor.diagram.StdInOutCommandServer.main(StdInOutCommandServer.java:13) \ No newline at end of file diff --git a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/index.html b/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/index.html deleted file mode 100644 index 08dc4c1b..00000000 --- a/docs/node_modules/.cache/gh-pages/https!github.com!Arquisoft!wiq_es04b.git/index.html +++ /dev/null @@ -1,2131 +0,0 @@ - - - - - - - -WIQ es04b - - - - - -
-
-
- -
-
-
-
- - - - - -
-
Note
-
-
-

This version of the template contains some help and explanations. -It is used for familiarization with arc42 and the understanding of the concepts. -For documentation of your own system you use better the plain version.

-
-
-
-
-
-
-
-
-
-

1. Introduction and Goals

-
-
-
-
-

Describes the relevant requirements and the driving forces that software architects and development team must consider. -These include

-
-
-
    -
  • -

    underlying business goals,

    -
  • -
  • -

    essential features,

    -
  • -
  • -

    essential functional requirements,

    -
  • -
  • -

    quality goals for the architecture and

    -
  • -
  • -

    relevant stakeholders and their expectations

    -
  • -
-
-
-
-
-

WIQ is a game developed by HappySw for:

-
-
-
    -
  • -

    Challenging "Saber y ganar" fans

    -
  • -
  • -

    Learning to perform teamwork

    -
  • -
  • -

    Passing the "Software Architecture" subject

    -
  • -
  • -

    Improving as software engineers

    -
  • -
-
-
-

1.1. Requirements Overview

-
-
-
-
Contents
-

Short description of the functional requirements, driving forces, extract (or abstract) -of requirements. Link to (hopefully existing) requirements documents -(with version number and information where to find it).

-
-
-
Motivation
-

From the point of view of the end users a system is created or modified to -improve support of a business activity and/or improve the quality.

-
-
-
Form
-

Short textual description, probably in tabular use-case format. -If requirements documents exist this overview should refer to these documents.

-
-
-

Keep these excerpts as short as possible. Balance readability of this document with potential redundancy w.r.t to requirements documents.

-
-
-
Further Information
-

See Introducdction and Goals in the arc42 documentation.

-
-
-
-
-

This web application, inspired by the famous Spanish TV show "Saber y ganar," consists of a mini-game of questions and answers. -In this game, the player is asked a question and presented with four possible answers, of which only one is correct.

-
-
-
    -
  • -

    The player must register with a name.

    -
  • -
  • -

    The player must answer the question within a time limit.

    -
  • -
  • -

    If the player does not answer, it will be counted as an incorrect response.

    -
  • -
  • -

    Each correct answer earns points.

    -
  • -
  • -

    Optionally, the score can be saved in a ranking.

    -
  • -
-
-
-

For all those "Saber y ganar" viewers who wanted to participate in the show, this application is ideal for testing their knowledge.

-
-
-

The application automatically generates questions with the help of Wikidata (the page that supports Wikipedia and many other wikis) -to constantly update the questions instead of storing them in a database.

-
-
-
-

1.2. Quality Goals

-
-
-
-
Contents
-

The top three (max five) quality goals for the architecture whose fulfillment is of highest importance to the major stakeholders. -We really mean quality goals for the architecture. Don’t confuse them with project goals. -They are not necessarily identical.

-
-
-

Consider this overview of potential topics (based upon the ISO 25010 standard):

-
-
-
-Categories of Quality Requirements -
-
-
-
Motivation
-

You should know the quality goals of your most important stakeholders, since they will influence fundamental architectural decisions. -Make sure to be very concrete about these qualities, avoid buzzwords. -If you as an architect do not know how the quality of your work will be judged…​

-
-
-
Form
-

A table with quality goals and concrete scenarios, ordered by priorities

-
-
-
- ----- - - - - - - - - - - - - - - - - - - - - - - - - -
AtributoMotivacion

1

Efficiency

Access, creation of questions, and navigation between them should be fast to ensure user satisfaction.

2

Usability

The application should be appealing to all fans of the original program while also offering a wide variety of questions.

3

Manteinence

The application should ensure easy expansion and modification to provide users with new features.

-
-
-

1.3. Stakeholders

-
-
-
-
Contents
-

Explicit overview of stakeholders of the system, i.e. all person, roles or organizations that

-
-
-
    -
  • -

    should know the architecture

    -
  • -
  • -

    have to be convinced of the architecture

    -
  • -
  • -

    have to work with the architecture or with code

    -
  • -
  • -

    need the documentation of the architecture for their work

    -
  • -
  • -

    have to come up with decisions about the system or its development

    -
  • -
-
-
-
Motivation
-

You should know all parties involved in development of the system or affected by the system. -Otherwise, you may get nasty surprises later in the development process. -These stakeholders determine the extent and the level of detail of your work and its results.

-
-
-
Form
-

Table with role names, person names, and their expectations with respect to the architecture and its documentation.

-
-
-
- ---- - - - - - - - - - - - - - - - - - - - - - - - - -
Role/NameExpectations

HappySw

A company developing the application aiming to earn money through its development and recognition at the Spanish level.

RTVE

A Spanish television network that hired the development to promote its program.

Uniovi students

The application developers who want to pass the subject.

ArquiSoft teachers

The evaluators of the program development and final version who want their students to pass.

-
-
-
-
-
-

2. Architecture Constraints

-
-
-
-
-
Contents
-

Any requirement that constraints software architects in their freedom of design and implementation decisions or decision about the development process. These constraints sometimes go beyond individual systems and are valid for whole organizations and companies.

-
-
-
Motivation
-

Architects should know exactly where they are free in their design decisions and where they must adhere to constraints. -Constraints must always be dealt with; they may be negotiable, though.

-
-
-
Form
-

Simple tables of constraints with explanations. -If needed you can subdivide them into -technical constraints, organizational and political constraints and -conventions (e.g. programming or versioning guidelines, documentation or naming conventions)

-
-
-
Further Information
-

See Architecture Constraints in the arc42 documentation.

-
-
-
-
-
    -
  • -

    Mandatory Usage of WikiData API: -The WikiData API must be utilized as an integral part of the system, and interactions with WikiData are obligatory for data retrieval and integration.

    -
  • -
  • -

    Web Frontend Requirement: -The system must include at least one web frontend, and it is mandatory for deployment.

    -
  • -
-
-
-

-Users log in and game history: - The users will be able to register in the system and consult their participation history in the system.

-
-
-

-Limited time in questions: - The questions must have a limited time to be responded.

-
-
-

-Questions must have 4 posible answers - Each question will have one correct answer and several incorrect or distractor answers. Both the correct and incorrect answers will be generated automatically.

-
-
-

-System API: - System will allow accessing user information and the information of the generated questions through an API.

-
-
-
-
-
-

3. System Scope and Context

-
-
-
-
-
Contents
-

System scope and context - as the name suggests - delimits your system (i.e. your scope) from all its communication partners -(neighboring systems and users, i.e. the context of your system). It thereby specifies the external interfaces.

-
-
-

If necessary, differentiate the business context (domain specific inputs and outputs) from the technical context (channels, protocols, hardware).

-
-
-
Motivation
-

The domain interfaces and technical interfaces to communication partners are among your system’s most critical aspects. Make sure that you completely understand them.

-
-
-
Form
-

Various options:

-
-
-
    -
  • -

    Context diagrams

    -
  • -
  • -

    Lists of communication partners and their interfaces.

    -
  • -
-
-
-
Further Information
-

See Context and Scope in the arc42 documentation.

-
-
-
-
-

3.1. Business Context

-
-
-
-
Contents
-

Specification of all communication partners (users, IT-systems, …​) with explanations of domain specific inputs and outputs or interfaces. -Optionally you can add domain specific formats or communication protocols.

-
-
-
Motivation
-

All stakeholders should understand which data are exchanged with the environment of the system.

-
-
-
Form
-

All kinds of diagrams that show the system as a black box and specify the domain interfaces to communication partners.

-
-
-

Alternatively (or additionally) you can use a table. -The title of the table is the name of your system, the three columns contain the name of the communication partner, the inputs, and the outputs.

-
-
-
-
-
-Deployment diagram -
-
-
-
    -
  • -

    User: Represents users who interact with the application to play games or view their history.

    -
  • -
  • -

    System (QuestionGame): The main system that hosts the game logic and manages user interactions.

    -
  • -
  • -

    WikiData: Component used to retrieve data from Wikidata and automatically generate questions.

    -
  • -
  • -

    Database: Stores system information, such as user data, generated questions, game history, etc.

    -
  • -
-
-
-
-

3.2. Technical Context

-
-
-
-
Contents
-

Technical interfaces (channels and transmission media) linking your system to its environment. In addition a mapping of domain specific input/output to the channels, i.e. an explanation which I/O uses which channel.

-
-
-
Motivation
-

Many stakeholders make architectural decision based on the technical interfaces between the system and its context. Especially infrastructure or hardware designers decide these technical interfaces.

-
-
-
Form
-

E.g. UML deployment diagram describing channels to neighboring systems, -together with a mapping table showing the relationships between channels and input/output.

-
-
-
-
-
-Technical Context Diagram -
-
-
-
    -
  • -

    User Agent: Represents the web or mobile interface used by users.

    -
  • -
  • -

    QuestionGame server: The server-side components, including the Frontend, QuestionGame logic, User’s API, and Question’s API.

    -
  • -
  • -

    HTTPS: Represents the communication channels, with HTTPS being the protocol used for secure communication.

    -
  • -
  • -

    Question Generation: Represents the means used for question and answers generation.

    -
  • -
  • -

    Database: Represents whichever system used for data persistence.

    -
  • -
  • -

    To be decided: Indicates that specific details about the channels and protocols are yet to be determined.

    -
  • -
-
-
-

3.2.1. Input/Output Mapping Table

- ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ComponentInput/OutputChannel/Protocol

User’s API

User registration, game history

HTTPS

Question’s API

Question data retrieval

HTTPS

Frontend

User interactions, game display

HTTPS

Database

User data, game history, questions

Specific database driver

WikiData

Data for question generation

HTTP

-
-
-
-
-
-
-

4. Solution Strategy

-
-
-
-
-
Contents
-

A short summary and explanation of the fundamental decisions and solution strategies, that shape system architecture. It includes

-
-
-
    -
  • -

    technology decisions

    -
  • -
  • -

    decisions about the top-level decomposition of the system, e.g. usage of an architectural pattern or design pattern

    -
  • -
  • -

    decisions on how to achieve key quality goals

    -
  • -
  • -

    relevant organizational decisions, e.g. selecting a development process or delegating certain tasks to third parties.

    -
  • -
-
-
-
Motivation
-

These decisions form the cornerstones for your architecture. They are the foundation for many other detailed decisions or implementation rules.

-
-
-
Form
-

Keep the explanations of such key decisions short.

-
-
-

Motivate what was decided and why it was decided that way, -based upon problem statement, quality goals and key constraints. -Refer to details in the following sections.

-
-
-
Further Information
-

See Solution Strategy in the arc42 documentation.

-
-
-
-
-

There are some placeholders for the decisions yet to be taken.

-
-
-

4.1. Technological Decisions

-
-
    -
  • -

    Programming Language: Java will be used for system development because all team members are familiar with it, and we believe we can perform better using this language.

    -
  • -
  • -

    Frontend Framework: SpringBoot will be adopted for frontend development because it allows us to deploy a web application using Java and provides numerous functionalities that greatly facilitate the implementation of project requirements, such as user authentication.

    -
  • -
  • -

    Database: [Database] was selected as the storage engine due to [reasons].

    -
  • -
-
-
-
-

4.2. System Decomposition

-
-

The Model-View-Controler architecture pattern will be followed for structuring the system, dividing it into modules/classes responsible for the managment of the players, questions, answers and game, and the viiews of the frontend.

-
-
-
-

4.3. Quality Goals

-
-
    -
  • -

    Performance: A quick system response will be sought, especially during question generation and gameplay.

    -
  • -
  • -

    Security: Security measures will be implemented to protect user information and ensure the integrity of generated questions.

    -
  • -
-
-
-
-

4.4. Organizational Decisions

-
-

Development Methodology: GitFlow will be adopted for project management, facilitating collaboration and iterative delivery.

-
-
-
-
-
-
-

5. Building Block View

-
-
-
-
-
Content
-

The building block view shows the static decomposition of the system into building blocks (modules, components, subsystems, classes, interfaces, packages, libraries, frameworks, layers, partitions, tiers, functions, macros, operations, data structures, …​) as well as their dependencies (relationships, associations, …​)

-
-
-

This view is mandatory for every architecture documentation. -In analogy to a house this is the floor plan.

-
-
-
Motivation
-

Maintain an overview of your source code by making its structure understandable through -abstraction.

-
-
-

This allows you to communicate with your stakeholder on an abstract level without disclosing implementation details.

-
-
-
Form
-

The building block view is a hierarchical collection of black boxes and white boxes -(see figure below) and their descriptions.

-
-
-
-Hierarchy of building blocks -
-
-
-

Level 1 is the white box description of the overall system together with black -box descriptions of all contained building blocks.

-
-
-

Level 2 zooms into some building blocks of level 1. -Thus it contains the white box description of selected building blocks of level 1, together with black box descriptions of their internal building blocks.

-
-
-

Level 3 zooms into selected building blocks of level 2, and so on.

-
-
-
Further Information
-

See Building Block View in the arc42 documentation.

-
-
-
-
-

5.1. Whitebox Overall System

-
-
-
-

Here you describe the decomposition of the overall system using the following white box template. It contains

-
-
-
    -
  • -

    an overview diagram

    -
  • -
  • -

    a motivation for the decomposition

    -
  • -
  • -

    black box descriptions of the contained building blocks. For these we offer you alternatives:

    -
    -
      -
    • -

      use one table for a short and pragmatic overview of all contained building blocks and their interfaces

      -
    • -
    • -

      use a list of black box descriptions of the building blocks according to the black box template (see below). -Depending on your choice of tool this list could be sub-chapters (in text files), sub-pages (in a Wiki) or nested elements (in a modeling tool).

      -
    • -
    -
    -
  • -
  • -

    (optional:) important interfaces, that are not explained in the black box templates of a building block, but are very important for understanding the white box. -Since there are so many ways to specify interfaces why do not provide a specific template for them. - In the worst case you have to specify and describe syntax, semantics, protocols, error handling, - restrictions, versions, qualities, necessary compatibilities and many things more. -In the best case you will get away with examples or simple signatures.

    -
  • -
-
-
-
-
-
-Whitebox Overall System -
-
-
-
-
Motivation
-
-

The purpose of this whitebox is to provide a clear, simple overview without delving into details of how the WIQ system interacts -with the external Wikidata service to obtain the necessary data for question generation. By presenting this interaction clearly, -stakeholders can easily understand how the WIQ system integrates with external data sources and how that information is used to -fulfill system requirements related to the automatic generation of questions.

-
-
Contained Building Blocks
-
-
- ---- - - - - - - - - - - - - - - - - - - - - - - - - -
NameDescription

User

It represents the user interacting with the WIQ application.

WIQ

It represents the main WIQ application.

Wikidata

External service used by WIQ to obtain data and generate questions.

DataBase

The DataBase that save the accounts of the players and the games that they played.

-
-
-
In progress…​
-
-

We have yet to decide the precise composition of our system so we can´t fill the rest of this section yet.

-
-
Important Interfaces
-
-

<Description of important interfaces>

-
-
-
-
-
-
-

Insert your explanations of black boxes from level 1:

-
-
-

If you use tabular form you will only describe your black boxes with name and -responsibility according to the following schema:

-
- ---- - - - - - - - - - - - - - - - - -
NameResponsibility

<black box 1>

 <Text>

<black box 2>

 <Text>

-
-

If you use a list of black box descriptions then you fill in a separate black box template for every important building block . -Its headline is the name of the black box.

-
-
-
-
-

5.1.1. <Name black box 1>

-
-
-
-

Here you describe <black box 1> -according the the following black box template:

-
-
-
    -
  • -

    Purpose/Responsibility

    -
  • -
  • -

    Interface(s), when they are not extracted as separate paragraphs. This interfaces may include qualities and performance characteristics.

    -
  • -
  • -

    (Optional) Quality-/Performance characteristics of the black box, e.g.availability, run time behavior, …​.

    -
  • -
  • -

    (Optional) directory/file location

    -
  • -
  • -

    (Optional) Fulfilled requirements (if you need traceability to requirements).

    -
  • -
  • -

    (Optional) Open issues/problems/risks

    -
  • -
-
-
-
-
-

<Purpose/Responsibility>

-
-
-

<Interface(s)>

-
-
-

<(Optional) Quality/Performance Characteristics>

-
-
-

<(Optional) Directory/File Location>

-
-
-

<(Optional) Fulfilled Requirements>

-
-
-

<(optional) Open Issues/Problems/Risks>

-
-
-
-

5.1.2. <Name black box 2>

-
-

<black box template>

-
-
-
-

5.1.3. <Name black box n>

-
-

<black box template>

-
-
-
-

5.1.4. <Name interface 1>

-
-

…​

-
-
-
-

5.1.5. <Name interface m>

- -
-
-
-

5.2. Level 2

-
-
-
-

Here you can specify the inner structure of (some) building blocks from level 1 as white boxes.

-
-
-

You have to decide which building blocks of your system are important enough to justify such a detailed description. -Please prefer relevance over completeness. Specify important, surprising, risky, complex or volatile building blocks. -Leave out normal, simple, boring or standardized parts of your system

-
-
-
-
-

5.2.1. White Box <building block 1>

-
-
-
-

…​describes the internal structure of building block 1.

-
-
-
-
-

<white box template>

-
-
-
-

5.2.2. White Box <building block 2>

-
-

<white box template>

-
-
-

…​

-
-
-
-

5.2.3. White Box <building block m>

-
-

<white box template>

-
-
-
-
-

5.3. Level 3

-
-
-
-

Here you can specify the inner structure of (some) building blocks from level 2 as white boxes.

-
-
-

When you need more detailed levels of your architecture please copy this -part of arc42 for additional levels.

-
-
-
-
-

5.3.1. White Box <_building block x.1_>

-
-
-
-

Specifies the internal structure of building block x.1.

-
-
-
-
-

<white box template>

-
-
-
-

5.3.2. White Box <_building block x.2_>

-
-

<white box template>

-
-
-
-

5.3.3. White Box <_building block y.1_>

-
-

<white box template>

-
-
-
-
-
-
-
-

6. Runtime View

-
-
-
-
-
Contents
-

The runtime view describes concrete behavior and interactions of the system’s building blocks in form of scenarios from the following areas:

-
-
-
    -
  • -

    important use cases or features: how do building blocks execute them?

    -
  • -
  • -

    interactions at critical external interfaces: how do building blocks cooperate with users and neighboring systems?

    -
  • -
  • -

    operation and administration: launch, start-up, stop

    -
  • -
  • -

    error and exception scenarios

    -
  • -
-
-
-

Remark: The main criterion for the choice of possible scenarios (sequences, workflows) is their architectural relevance. It is not important to describe a large number of scenarios. You should rather document a representative selection.

-
-
-
Motivation
-

You should understand how (instances of) building blocks of your system perform their job and communicate at runtime. -You will mainly capture scenarios in your documentation to communicate your architecture to stakeholders that are less willing or able to read and understand the static models (building block view, deployment view).

-
-
-
Form
-

There are many notations for describing scenarios, e.g.

-
-
-
    -
  • -

    numbered list of steps (in natural language)

    -
  • -
  • -

    activity diagrams or flow charts

    -
  • -
  • -

    sequence diagrams

    -
  • -
  • -

    BPMN or EPCs (event process chains)

    -
  • -
  • -

    state machines

    -
  • -
  • -

    …​

    -
  • -
-
-
-
Further Information
-

See Runtime View in the arc42 documentation.

-
-
-
-
-

6.1. User Authentication

-
-
-Sequence diagram 1 -
-
-
-
-

6.2. Question Generation

-
-
-Sequence diagram 2 -
-
-
-
-

6.3. User Responds to a Question

-
-
-Sequence diagram 3 -
-
-
-
-

6.4. User Checks their History

-
-
-Sequence diagram 4 -
-
-
-
-

6.5. Access to User Information via an API

-
-
-Sequence diagram 5 -
-
-
-
-

6.6. Access to Generated Questions Information via an API

-
-
-Sequence diagram 6 -
-
-
-
-
-
-
-

7. Deployment View

-
-
-

The deployment strategy for our game, which leverages the Wikidata API to dynamically generate questions, is built around a Docker-based infrastructure. This approach allows for the encapsulation of our Java Spring Boot application within a Docker container, simplifying deployments across different environments (development, testing, and production) while ensuring consistency and isolation.

-
-
-

7.1. Infrastructure Level 1

-
-

Our application is containerized using Docker, enabling us to deploy the entire stack as a single .jar file that includes the web server. This method ensures that our application can be easily moved across environments or scaled up as needed without significant changes to the infrastructure.

-
-
-

Overview Diagram: -The infrastructure features a single Docker container that hosts the Java Spring Boot application. This container communicates with external services, such as the Wikidata API, to fetch data in real-time and generate game questions.

-
-
-
Motivation
-

The primary motivation behind using Docker for deployment is to streamline the development and deployment processes. By containerizing the application, we reduce discrepancies between environments, making it easier to develop, test, and deploy with confidence.

-
-
-
Quality and/or Performance Features
-
    -
  • -

    Portability: Docker containers can run on any system that has Docker installed, reducing environment-specific bugs.

    -
  • -
  • -

    Scalability: While we start with a single container, the setup can be easily scaled using Docker Compose or Docker Swarm if the need arises.

    -
  • -
  • -

    Efficiency: Docker utilizes resources more efficiently than traditional VMs, allowing for faster startup times and lower overhead.

    -
  • -
-
-
-
Mapping of Building Blocks to Infrastructure
-
    -
  • -

    Web Server/Application (.jar file): Packaged within a Docker container, it includes all necessary dependencies to run independently across any Docker-supported platform.

    -
  • -
  • -

    External APIs (e.g., Wikidata API): Accessed over the network, these APIs provide dynamic content for the game.

    -
  • -
-
-
-
-

7.2. Infrastructure Level 2

-
-

At this level, we describe the Docker container configuration that encapsulates our application.

-
-
-

7.2.1. Docker Container

-
-

Our app’s Docker container is built from a Java base image, which is then layered with our application’s .jar file.

-
-
-

In addition to the Spring boot standalone file, we also use the official MySQL server docker container image brought by DockerHub. This is our database server and it is used to store the game data, such as user scores, questions, etc. and all the other persistent data.

-
-
-

This setup encapsulates the entire runtime environment required for our application, and does not require extensive configuration.

-
-
-
-Docker Container Setup -
-
Figure 1. Diagram: Docker Container Setup
-
-
-
Explanation:
-

This diagram illustrates the internal structure of our Docker containers structure. It shows the Java Spring Boot application, including the embedded web server, packaged as a .jar file and the MySQL server. The application interacts with external APIs, like the Wikidata API, to retrieve data necessary for generating game questions. The containerized approach ensures that the application can be deployed consistently across any environment that supports Docker.

-
-
-
-
-
-
-
-

8. Cross-cutting Concepts

-
-
-

The following concepts provide a foundation for the design and implementation of the trivia game project, which utilizes the Wikidata API for dynamic question generation and employs a hexagonal architecture for its Java Spring Boot application.

-
-
-

8.1. Domain Model

-
-

The domain model for our game includes entities such as Question, Category, Player, Role, and GameSession. These are crucial for representing the game’s data and logic. The model serves as the basis for interactions within the application and between the application and the database.

-
-
-
-domain model -
-
-
-
-domain model 2 -
-
-
-
-

8.2. Hexagonal Architecture

-
-

Our application is structured using hexagonal architecture principles, which prioritize the separation of core logic from peripheral concerns like user interface and external API interactions.

-
-
-
Explanation:
-

This architecture facilitates the creation of a flexible and maintainable codebase. It allows for easy adaptation to changes in external services or user interface technologies without impacting the application’s core logic.

-
-
-
-

8.3. Java Persistence API (JPA) for Data Management

-
-

We use JPA for data persistence to abstract and handle all database operations, allowing for a more streamlined and object-oriented approach to data handling.

-
-
-
Explanation:
-

JPA enables us to map our domain objects to the database schema with ease, providing a clear layer of abstraction that simplifies data persistence and retrieval while ensuring our application remains agnostic of the underlying database technology.

-
-
-
-

8.4. Logging with Slf4j and System.out

-
-

For monitoring runtime behavior and troubleshooting, the project utilizes Slf4j, bundled with Sprint Boot, and System.out for logging. While Slf4j offers more sophisticated logging capabilities, System.out is used for straightforward, immediate console output.

-
-
-
Explanation:
-

Slf4j is configured to capture various levels of output, which can be directed to multiple destinations such as console, files, or even remote logging servers. For simplicity and immediacy during development or less complex deployment scenarios, System.out is employed for logging output directly to the console.

-
-
-
-

8.5. Security

-
-

Security is a key concern, ensuring that user data and game integrity are protected. We implement standard security practices at various levels within the application

-
-
-
Explanation:
-

This includes securing the web layer with Spring Security, encrypting sensitive data, and protecting against common web vulnerabilities.

-
-
-
-

8.6. Performance Optimization

-
-

Performance optimization is considered in all aspects of the application, from the efficient design of the domain model to the configuration of the persistence layer.

-
-
-
Explanation:
-

We ensure that database interactions are efficient through JPA’s caching and lazy loading. Queries are optimized to fetch only the necessary data, minimizing response times and resource utilization.

-
-
-
-

8.7. Continuous Integration and Continuous Deployment (CI/CD)

-
-

The project adheres to CI/CD practices, facilitating automated testing, building, and deployment processes which contribute to the robustness and reliability of the application.

-
-
-
Explanation:
-

Our CI/CD pipeline automates the process of integrating code changes, building the application, running tests, and deploying the Dockerized application, ensuring consistent and reliable delivery of updates.

-
-
-
-

8.8. Scalability

-
-

Designing for scalability, the application can accommodate an increasing number of users and interactions without performance degradation. -.Explanation: -Scalable solutions such as Docker containers allow the application to be deployed in a distributed environment, where resources can be adjusted based on demand.

-
-
-
-
-
-
-

9. Architecture Decisions

-
-
-
-
-
Contents
-

Important, expensive, large scale or risky architecture decisions including rationales. -With "decisions" we mean selecting one alternative based on given criteria.

-
-
-

Please use your judgement to decide whether an architectural decision should be documented -here in this central section or whether you better document it locally -(e.g. within the white box template of one building block).

-
-
-

Avoid redundancy. -Refer to section 4, where you already captured the most important decisions of your architecture.

-
-
-
Motivation
-

Stakeholders of your system should be able to comprehend and retrace your decisions.

-
-
-
Form
-

Various options:

-
-
-
    -
  • -

    ADR (Documenting Architecture Decisions) for every important decision

    -
  • -
  • -

    List or table, ordered by importance and consequences or:

    -
  • -
  • -

    more detailed in form of separate sections per decision

    -
  • -
-
-
-
Further Information
-

See Architecture Decisions in the arc42 documentation. -There you will find links and examples about ADR.

-
-
-
-
-

The purpose of this section is to create an ordered list of architectural decisions that we will make as we develop the project. This list will be ordered according to the importance of the decision.

-
-
-
    -
  • -

    ADR 01 - Protection of the master branch

    -
  • -
  • -

    ADR 02 - Switch from JavaScript to Java with Spring

    -
  • -
-
-
-
-
-
-

10. Quality Requirements

-
-
-
-
-
Content
-

This section contains all quality requirements as quality tree with scenarios. The most important ones have already been described in section 1.2. (quality goals)

-
-
-

Here you can also capture quality requirements with lesser priority, -which will not create high risks when they are not fully achieved.

-
-
-
Motivation
-

Since quality requirements will have a lot of influence on architectural -decisions you should know for every stakeholder what is really important to them, -concrete and measurable.

-
-
-
Further Information
-

See Quality Requirements in the arc42 documentation.

-
-
-
-
-

10.1. Quality Tree

-
-
-
-
Content
-

The quality tree (as defined in ATAM – Architecture Tradeoff Analysis Method) with quality/evaluation scenarios as leafs.

-
-
-
Motivation
-

The tree structure with priorities provides an overview for a sometimes large number of quality requirements.

-
-
-
Form
-

The quality tree is a high-level overview of the quality goals and requirements:

-
-
-
    -
  • -

    tree-like refinement of the term "quality". Use "quality" or "usefulness" as a root

    -
  • -
  • -

    a mind map with quality categories as main branches

    -
  • -
-
-
-

In any case the tree should include links to the scenarios of the following section.

-
-
-
-
-

Note: Items (1), (2), (3) in the table below repeat the higher-level quality requirements of Chapter 1.2.

-
- ------ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quality categoryQualityDescriptionScenario

Usability

Ease of use

The application shall be easy to use by the user, with intuitive functionality.

SC1

Familiarity of the environment (2)

The application should appeal to all fans of the original programme and provide a wide variety of questions.

Performance

Accuracy

The questions in the application must be accurate, both the question and the correct answer.

Efficiency (1)

Accessing, creating questions and moving between questions should be fast to ensure user satisfaction.

Robustness

The system shall function reliably in all specified environments and operating conditions.

SC2

Safety

Integrity

The application shall be user-friendly, with intuitive functionality.

Maintainability and support

Maintenance (2)

The application shall ensure that it can be easily extended and modified to provide new features to users.

Cultural and Regional

Multilingual

The user interface texts must be able to be converted by a translation file into different languages with an ASCII character set.

SC3

-
-
-

10.2. Quality Scenarios

-
-
-
-
Contents
-

Concretization of (sometimes vague or implicit) quality requirements using (quality) scenarios.

-
-
-

These scenarios describe what should happen when a stimulus arrives at the system.

-
-
-

For architects, two kinds of scenarios are important:

-
-
-
    -
  • -

    Usage scenarios (also called application scenarios or use case scenarios) describe the system’s runtime reaction to a certain stimulus. This also includes scenarios that describe the system’s efficiency or performance. Example: The system reacts to a user’s request within one second.

    -
  • -
  • -

    Change scenarios describe a modification of the system or of its immediate environment. Example: Additional functionality is implemented or requirements for a quality attribute change.

    -
  • -
-
-
-
Motivation
-

Scenarios make quality requirements concrete and allow to -more easily measure or decide whether they are fulfilled.

-
-
-

Especially when you want to assess your architecture using methods like -ATAM you need to describe your quality goals (from section 1.2) -more precisely down to a level of scenarios that can be discussed and evaluated.

-
-
-
Form
-

Tabular or free form text.

-
-
-
- ---- - - - - - - - - - - - - - - - - - - - - -
IdentificationScenario

SC1

A user who is not familiar with the application will know how to use it after a few minutes of instruction.

SC2

The application should be able to be run from any device, from a computer to a mobile phone, without losing formatting.

CS3

With the appropriate translation files replacing the default language (English), all displayed and printed texts now appear in this language.

-
-
-
-
-
-

11. Risks and Technical Debts

-
-
-
-
-
Contents
-

A list of identified technical risks or technical debts, ordered by priority

-
-
-
Motivation
-

“Risk management is project management for grown-ups” (Tim Lister, Atlantic Systems Guild.)

-
-
-

This should be your motto for systematic detection and evaluation of risks and technical debts in the architecture, which will be needed by management stakeholders (e.g. project managers, product owners) as part of the overall risk analysis and measurement planning.

-
-
-
Form
-

List of risks and/or technical debts, probably including suggested measures to minimize, mitigate or avoid risks or reduce technical debts.

-
-
-
Further Information
-

See Risks and Technical Debt in the arc42 documentation.

-
-
-
- ----- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PriorityRiskDescription

High

Migration to Java

-

Migration from the current project language, JavaScript (JS), to Java

-

Medium

IDE Configuration

-

Version compatibility, extensions and other preferences to work perfectly without conflicts

-

Medium

Database

-

Discuss which database is best for the project

-

Low

Docker

-

Know how docker works, what it is for, how it is used and what its alternatives could be.

-
- ----- - - - - - - - - - - - - - - -
PriorityDebtDescription

Low

Microservices

-

Research about microservices and what they can contribute to the project

-
-
-

| Term | Definition

-
-
-

|WikiData |A collaborative platform that provides structured data for Wikimedia projects, including Wikipedia.

-
-
-

|Question | Entity that encapsulates details of the trivia questions.

-
-
-

|Category | Classifies questions into various topics, each question can only belong to one category.

-
-
-

|Player | Represents users and their interactions with the game

-
-
-

|GameSession | Maintains the state of play, including scores and progress.

-
- -
-
-
-
- - - \ No newline at end of file diff --git a/index.html b/index.html index 47271549..97ae454a 100644 --- a/index.html +++ b/index.html @@ -2116,7 +2116,7 @@

11. Risks and Technical Debts