# Infrastructure UML

``` mermaid
classDiagram

Raspberry pi --> NodeJS
Raspberry pi --> Database
NodeJS --> Androidapp : getExerciseData (Wifi, Rest API)
Database <--> NodeJS : Database queries
NodeJS --> ESP8266

ESP8266 --> Androidapp : getRotationalData (Wifi)
namespace Server {
    class Raspberry pi {
        +MariaDB
        +Apache2
        +NodeJS
        Database()
        Webserver()

    }

    class Database {
        +ExerciseID
        +ExerciseName
        +ExerciseDescription
        +ExerciseVideo
        +GyroCoordinates
        +MuscleGroup
    }

    class NodeJS {
        +MariaDB
        GetRandomExercise()
        PassIpAddress()
    }
}

namespace Pepper {
    class Androidapp {
        +Java
        +Android SDK
        +QiSDK
    }
}

namespace Hardware {
    class ESP8266{
        +RotationalX
        +RotationalY
        +RotationalZ
        Gyroscope()
    }
}
```

