- Overview
- DME Architecture
- Prerequisites
- Getting Started
- Running the Application
- Docker Setup
- License
The application consists of multiple services:
-
The DME concept: defines an autonomous operating software with the ability of performing data and result processing as requested for standard work by human metrology experts.
-
DMEs: are provided for standard work such as evaluation of intercomparison, calculation of model based measurands and quantities, verification of metrological data, etc. They can take over larger amount of tedious human work.
-
StandardBilateralEnCalculationService: Implements logic for calculating
|Xi - Xj| / sqrt(Ui² - Uj²)
. -
EnValueCalculationService: Calculates En-values for various participants.
-
ReferenceValueCalculationService: Calculates reference values from participant measurements.
-
EnCriterionConsistencyCheckService: Performs checks to identify if data comparisons are consistent or inconsistent.
-
DecisionProcessingService: Defines the logic for processing decisions, either manually or automatically.
This presentation explains the details of the Digital Metrological Expert software tool.
- Java 17
- Maven 3.6+
- Docker
- Clone the repository:
git clone https://github.com/PTB-M4D/DME_Backend.git
- local: Add a local ./m2/settings.xml to allow maven to use the proxy server:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<proxies>
<proxy>
<id>.....webproxy</id>
<active>true</active>
<protocol>http</protocol>
<host>webproxy.example.com</host>
<port>8080</port>
<nonProxyHosts>localhost|*.example.com</nonProxyHosts>
</proxy>
</proxies>
</settings>
- Build the project local using Maven:
mvn clean install
- Run the application:
mvn spring-boot:run
Once the application is running, you can access the API endpoints via http://localhost:8080/api/dme-comparison/sayHello
.
To run the application inside a Docker container, follow these steps:
- Build the Docker image:
docker build .
docker build -t dmebackend
- Run the Docker container:
docker run -p 8000:8080 dmebackend
The application should now be accessible at http://localhost:8000/api/dme-comparison/testDme
.
This project is licensed under the MIT License - see the LICENSE file for details.