- Introduction
- 1.1 Purpose
- 1.2 Scope
- 1.3 Definitions, Acronyms and Abbreviations
- 1.4 References
- 1.5 Overview
- Architectural Representation
- Architectural Goals and Constraints
- Use-Case View
- Logical View
- Process View
- Deployment View
- Implementation View
- Data View
- Size and Performance
- Quality
- 1.1 Design Patterns
- 1.2 Metrics
This document provides a comprehensive architectural overview of the system, using a number of different architectural views to depict different aspects of the system. It is intended to capture and convey the significant architectural decisions which have been made on the system.
This document describes the technical architecture of the TaskHub project, including the structure of classes, modules and dependencies.
Abbrevation | Description |
---|---|
API | Application programming interface |
REST | Representational state transfer |
SRS | Software Requirements Specification |
UC | Use Case |
VCS | Version Control System |
n/a | not applicable |
Title | Date | Publishing organization |
---|---|---|
TaskHub Blog | 2020-12-03 | TaskHub Team |
Repository on GitHub - Code | 2020-12-03 | TaskHub Team |
Repository on GitHub - Docu | 2020-12-03 | TaskHub Team |
UC Assign Student | 2020-12-03 | TaskHub Team |
UC Assign Teacher | 2020-12-03 | TaskHub Team |
UC CreateAClass | 2020-12-03 | TaskHub Team |
UC CreateTask | 2020-12-03 | TaskHub Team |
UC EditSolution | 2020-12-03 | TaskHub Team |
SRS | 2020-12-03 | TaskHub Team |
This document contains the Architectural Representation, Goals and Constraints as well as the Logical, Deployment, Implementation and Data Views.
We are dividing the Frontend,Backend and Database. That we can swap each component very easily.
For the Database we use Postgre, because we used that in the Past and are familiar with it.
For the Backend we use a Node.js Server with ExpressJS and Sequelize to generate an REST API.
For the Frontend we use Angular to build our Webapp and connect to the REST API to get our Data.
Backend The Backend is split into the different API endpoints, allowing for easy understanding. For every endpoint, there is a router class, a service class and some interfaces. The router class handles the incoming requests and sends the responses and the service class is used for accessing the database and performing other checks, such as authorization.
Frontend The components in the frontend are divided into "pages" and "components" with pages being the angular components that build a whole page and components being small template components that can be used on different pages when needed
- When the user opens our page, the angular application is downloaded to the user's computer. By clicking through the pages, the application performs HTTP requests to our backend to load the required data.
- If the user wants to add another product, the backend performs a callout to one of our crawling instances, causing it to fetch the required product details.
- The nightly crawling process is centrally triggered from one crawler load balancing instance. This instance sends requests to the normal crawler instances, distributing the crawling tasks across all available instances.
n/a
n/a
Design patterns are proven solution templates for recurring design problems in software architecture and software development. Here you can see a detailed documentation of our design patterns. In the following you cann se which design patterns are used by our framewroks.
- Singleton: This pattern ensures that there is exactly one object of a class.
- Prototype: With this pattern, new instances are created on the basis of templates. The template is copied and adapted to new requirements.
- Observers: It belongs to the behavioural patterns category and is used to transfer changes to an object to structures that are dependent on this object.
- Dependency injection: It is a design pattern in object-oriented programming and regulates the dependencies of an object at runtime.
We are planning to use Jenkins as an continuous integration tool to ensure a high quality of our development process. Whenever there is a new commit to a pull request or the master branch it automatically builds the project and executes all tests. The Jenkins build result will be displayed beside each commit on Github.
- Reducing the amount of Bugs/Issues/Code Smells raised by Codacy. Here you can see an overview.