diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 5bcbf68..3c3ebdd 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -15,6 +15,7 @@ import {ModelTemplatesComponent} from './model-templates/model-templates.compone import {DocumentationArchitectureComponent} from './documentation/documentation-architecture/documentation-architecture.component'; import {MaterialsComponent} from './materials/materials.component'; import {MaterialComponent} from './material/material.component'; +import {DocumentationModelsComponent} from './documentation/documentation-models/documentation-models.component'; const routes: Routes = [ @@ -34,6 +35,7 @@ const routes: Routes = [ {path: 'documentation', component: DocumentationComponent}, {path: 'documentation/architecture', component: DocumentationArchitectureComponent}, {path: 'documentation/database', component: DocumentationDatabaseComponent}, + {path: 'documentation/models', component: DocumentationModelsComponent}, // if not authenticated { path: '**', redirectTo: '' } diff --git a/src/app/app.component.html b/src/app/app.component.html index 75d8741..3310240 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -18,6 +18,7 @@ General Architecture Database + Models diff --git a/src/app/app.module.ts b/src/app/app.module.ts index a2441d2..2d04295 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -34,6 +34,7 @@ import { SizePipe } from './size.pipe'; import { DocumentationArchitectureComponent } from './documentation/documentation-architecture/documentation-architecture.component'; import { MaterialsComponent } from './materials/materials.component'; import { MaterialComponent } from './material/material.component'; +import { DocumentationModelsComponent } from './documentation/documentation-models/documentation-models.component'; @NgModule({ declarations: [ @@ -60,7 +61,8 @@ import { MaterialComponent } from './material/material.component'; SizePipe, DocumentationArchitectureComponent, MaterialsComponent, - MaterialComponent + MaterialComponent, + DocumentationModelsComponent ], imports: [ LocalStorageModule.forRoot({ diff --git a/src/app/changelog/changelog.component.html b/src/app/changelog/changelog.component.html index 8954f31..e237f9a 100644 --- a/src/app/changelog/changelog.component.html +++ b/src/app/changelog/changelog.component.html @@ -1,4 +1,3 @@ -
diff --git a/src/app/documentation/documentation-database/documentation-database.component.html b/src/app/documentation/documentation-database/documentation-database.component.html index 0f324f9..e2ede6d 100644 --- a/src/app/documentation/documentation-database/documentation-database.component.html +++ b/src/app/documentation/documentation-database/documentation-database.component.html @@ -1,4 +1,3 @@ -
The used database instance is a MongoDB instance running on the BIC, storing all application data. The admin database @@ -31,11 +30,12 @@ Every time:
For creating a database backup, you must follow the same steps from above (except the last one). Additionally you need
- the MongoDB server installed. Open the MongoDB bin folder
+ the mongodump installed.
+ Open the MongoDB bin folder
(normally at C:\Program Files\MongoDB\Server\4.2\bin) in a PowerShell and execute following command for backup,
adjust parameters and credentials as needed:
- mongodump.exe /port:1120 /db:"6ebe4c5d-0da3-4347-b484-66894dcf3f27" /username:"<:username>"
- /password:"<:username>" /out:"C:\Path\to\backup\folder"
+ .\mongodump.exe /port:1120 /db:"6ebe4c5d-0da3-4347-b484-66894dcf3f27" /username:"<username>"
+ /password:"<username>" /out:"C:\Path\to\backup\folder"
Restoring the database from a backup is done with mongorestore.exe, more information can be found at the
documentation.
The BIC service also creates internal backup, which can be requested to restore, see
diff --git a/src/app/documentation/documentation-models/documentation-models.component.html b/src/app/documentation/documentation-models/documentation-models.component.html
new file mode 100644
index 0000000..45f211d
--- /dev/null
+++ b/src/app/documentation/documentation-models/documentation-models.component.html
@@ -0,0 +1,56 @@
+
+ Model files have to be saved as a .pkl file in 80_Modelle_BIC.
+ For upload the upload script has to be opened (can be in every environment). The name of the model file has to be
+ entered wih the .pkl ending in the first command and without .pkl in the second.
+
+ Open Spyder in the base environment and open the model.py within. +
+ ++ To test the model Python script locally, you need to execute it in the base environment, in which all necessary + packages have to be installed. Note that Spyder also has to be opened in the base environment. +
+ ++ After upload the new model details have to be entered in the UI. +
+ + diff --git a/src/app/documentation/documentation-models/documentation-models.component.scss b/src/app/documentation/documentation-models/documentation-models.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/documentation/documentation-models/documentation-models.component.spec.ts b/src/app/documentation/documentation-models/documentation-models.component.spec.ts new file mode 100644 index 0000000..d1adf71 --- /dev/null +++ b/src/app/documentation/documentation-models/documentation-models.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { DocumentationModelsComponent } from './documentation-models.component'; + +describe('DocumentationModelsComponent', () => { + let component: DocumentationModelsComponent; + let fixture: ComponentFixture