Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Feature/machine live data local #43

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
082aa1e
Adds basic parts and dependencies
May 7, 2019
f092887
Adds signalr deps
May 10, 2019
fa33574
Adds complete pipeline
May 13, 2019
54c8074
Adds grids and animations
May 14, 2019
0214437
Adds directive to compare values
May 14, 2019
1573292
Changes hub groups depending on machine
May 14, 2019
b5132d5
Merge master to feature branch
May 14, 2019
8c385ca
Changes readme and refresh package lock json
May 14, 2019
1ce1624
Adds signalr dep due to merge
May 15, 2019
c569f7f
Fix sonar smells
May 15, 2019
606993a
Adds multiple key display
May 15, 2019
e939187
Adds test for component
May 16, 2019
b65e6db
Merge master
May 16, 2019
b49b396
Changes package dependencies
May 16, 2019
7b9b5ca
Update paket lock
May 16, 2019
11f3aef
Adds controller test
May 16, 2019
7e4e6d4
Adds service tests
May 17, 2019
9e400bd
Adds changes for hub connections
May 17, 2019
cc079fb
Merge master
May 17, 2019
9961c0f
Changes in favor of review
May 22, 2019
3b41424
Merge master
May 22, 2019
cf164b0
Fix tests
May 22, 2019
7d087de
Adds scenario description
May 23, 2019
d63e674
Merge master
May 24, 2019
9ce35a1
Merge branch 'master' into feature/machine-live-data
Jun 3, 2019
cb617a1
Changes for code review
Jun 3, 2019
91e27e4
Removes async from test
Jun 3, 2019
c311f30
Fix tests
Jun 4, 2019
f3c6d8d
Fixs smells
Jun 4, 2019
648e98b
Adds service to use local data
Jun 6, 2019
a15f1db
Merge master
Jun 6, 2019
ad490ff
Merge master
Jun 6, 2019
ea54527
Removes merge markers
Jun 6, 2019
bfbd71c
Remove merge marker
Jun 6, 2019
eba2394
Fix parts from code review
Jun 7, 2019
f98ab31
Removes unneeded parameter
Jun 7, 2019
522b9e7
Merge master
Jun 7, 2019
f7da03d
Adds tests and rename file
Jun 7, 2019
ef12886
Changes readme
Jun 11, 2019
3d620f8
Adds configure await
Jun 17, 2019
5f7c4e1
Merge branch 'feature/machine-live-data' into feature/machine-live-da…
Jun 17, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
219 changes: 122 additions & 97 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,97 +1,122 @@
# tapio DeveloperApp

> A show case for [tapio](https://tapio.one/)

[![Build Status](https://dev.azure.com/ait-public/tapioDeveloperApp/_apis/build/status/AITGmbH.tapiodeveloperapp.CI?branchName=master)](https://dev.azure.com/ait-public/tapioDeveloperApp/_build/latest?definitionId=2&branchName=master)

[![Preview Deplyoment Status](https://vsrm.dev.azure.com/ait-public/_apis/public/Release/badge/654de716-0886-436a-8a4b-068a6af8aad0/1/1)](https://dev.azure.com/ait-public/tapioDeveloperApp/_release?definitionId=1)

[Production Website](https://tapiodeveloperapp.aitgmbh.de)

## Developement

Run the `Ensure-Prerequisites.ps1` PowerShell script to install the prerequisites.

## Build

Execute the following commands

```PowerShell
cd src\web
ng build
npm install
dotnet build
```

The result can be found in the directory `src\web\bin\Debug\netcoreapp2.2`

## Start

### Locally

#### Setup environment

In order to authenticate against tapio the credentials have to be provided. First restore the dependencies.

```PowerShell
cd .\src\
dotnet restore
```

Now the [Microsoft.Extensions.SecretManager.Tools](https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-2.2&tabs=windows) is available.

Run the following commands with the actual secrets

```PowerShell
cd .\src\web\
dotnet user-secrets set "TapioCloud:ClientID" "XYZ"
dotnet user-secrets set "TapioCloud:ClientSecret" "XYZ"
```

#### Run

Execute the following commands in one shell

```PowerShell
cd src\web
ng build --watch
```

Execute the following commands in another shell

```PowerShell
cd src\web
dotnet run
```

Navigate to <https://localhost:5001> with a browser

### Publish

Execute the following commands

```PowerShell
cd src\web
npm install
ng build
dotnet publish
```

The result can be found in the directory `src\web\bin\Debug\netcoreapp2.2\publish`

### Azure App Service

Provide access to the client id and secret via [App Settings](https://docs.microsoft.com/en-us/azure/app-service/web-sites-configure#app-settings).
Settings

* TapioCloud:ClientID XYZ
* TapioCloud:ClientSecret XYZ

## Legal Notice

You can find the Legal Notice - Impressum on (https://www.aitgmbh.de/impressum/).

## License

Licensed under [MIT License](LICENSE)

# tapio DeveloperApp

> A show case for [tapio](https://tapio.one/)

[![Build Status](https://dev.azure.com/ait-public/tapioDeveloperApp/_apis/build/status/AITGmbH.tapiodeveloperapp.CI?branchName=master)](https://dev.azure.com/ait-public/tapioDeveloperApp/_build/latest?definitionId=2&branchName=master)

[![Preview Deplyoment Status](https://vsrm.dev.azure.com/ait-public/_apis/public/Release/badge/654de716-0886-436a-8a4b-068a6af8aad0/1/1)](https://dev.azure.com/ait-public/tapioDeveloperApp/_release?definitionId=1)

[Production Website](https://tapiodeveloperapp.aitgmbh.de)

## Developement

Run the `Ensure-Prerequisites.ps1` PowerShell script to install the prerequisites.

## Build

Execute the following commands

```PowerShell
cd src\web
ng build
npm install
dotnet build
```

The result can be found in the directory `src\web\bin\Debug\netcoreapp2.2`

## Start

### Locally

#### Setup environment

In order to authenticate against tapio the credentials have to be provided. First restore the dependencies.

```PowerShell
cd .\src\
dotnet restore
```

Now the [Microsoft.Extensions.SecretManager.Tools](https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-2.2&tabs=windows) is available.

Run the following commands with the actual secrets

```PowerShell
cd .\src\web\
dotnet user-secrets set "TapioCloud:ClientID" "XYZ"
dotnet user-secrets set "TapioCloud:ClientSecret" "XYZ"
```

#### Streaming Data

Tapio offers a way to stream live data from your machines using [microsoft azure event hubs](https://azure.microsoft.com/de-de/services/event-hubs/). If you do not have any appropriate ressources you can refer to the [Local Usage Section](#local-usage).

##### Azure Event Hub

If you want to use streaming data you need to configure your [azure event hub](https://azure.microsoft.com/de-de/services/event-hubs/) instance and provide the according connection strings. A service for local live data generation will be added later on

```PowerShell
cd .\src\web\
dotnet user-secrets set "EventHub:EventHubEntityPath" "XYZ"
dotnet user-secrets set "EventHub:EventHubConnectionString" "XYZ"
dotnet user-secrets set "EventHub:StorageContainerName" "XYZ"
dotnet user-secrets set "EventHub:StorageConnectionString" "XYZ"
```

##### Local Usage

To be able to use the live data locally without any azure ressources have a look within the `src\web\appsettings.json` and set the value of `UseLocalLiveData` to `true`.

Running the application in development mode with the flag set, the data will be generated within the backend without any connection attempts to azure.

#### Run

Execute the following commands in one shell

```PowerShell
cd src\web
ng build --watch
```

Execute the following commands in another shell

```PowerShell
cd src\web
dotnet run
```

Navigate to <https://localhost:5001> with a browser

### Publish

Execute the following commands

```PowerShell
cd src\web
npm install
ng build
dotnet publish
```

The result can be found in the directory `src\web\bin\Debug\netcoreapp2.2\publish`

### Azure App Service

Provide access to the client id and secret via [App Settings](https://docs.microsoft.com/en-us/azure/app-service/web-sites-configure#app-settings).
Settings

- TapioCloud:ClientID XYZ
- TapioCloud:ClientSecret XYZ
- EventHub:EventHubEntityPath XYZ
- EventHub:EventHubConnectionString XYZ
- EventHub:StorageContainerName XYZ
- EventHub:StorageConnectionString XYZ

## Legal Notice

You can find the Legal Notice - [Impressum](https://www.aitgmbh.de/impressum/).

## License

Licensed under [MIT License](LICENSE)
3 changes: 3 additions & 0 deletions paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ group development
nuget xunit >= 2.4.0
nuget xunit.runner.visualstudio >= 2.4.0
nuget Moq
nuget Microsoft.AspNetCore.App = 2.2.0
nuget Microsoft.Azure.EventHubs = 3.0.0
nuget Microsoft.Azure.EventHubs.Processor = 3.0.0
Loading