System Overview

Last updated: 04.08.2017 by Jonas Solsvik


 ____________________________________                               
| components/                    |
|------------------------------------|
| card-client.html              |
| card-client.js                 |
|------------------------------------|
| card-translation.html       |
| card-translation.js          |
|------------------------------------|
| flipper-language.html       |
| flipper-language.js          |
|------------------------------------|
| form-client.html              |
| form-client.js                 |
|------------------------------------|
| generator-container.html   |                ___________________________________
| generator-container.js      |               | views/                         |
|------------------------------------|               |----------------------------------|
| generator-translation.html |               | edit-client.html            |
| generator-translation.js    |              | edit-client.js               |
|------------------------------------|               |----------------------------------|             ________________________________________
| header.html                    |               | select-client.html          |             | lib/                                |
| header.js                       |               | select-client.js            |             | ------------------------------------ |
|------------------------------------|               |----------------------------------|             | Ordbase-translate-plugin.js |
| picker-container.html       |               | select-translation.html   |             | Ordbase.js                        |
| picker-container.js          |               | select-translation.js     |              | Fetch.js                          |
|____________________________________|               |__________________________________|             |______________________________________|  
                  |                                                |                                                   |
                  |                                                |                                                   |
                  |                                                |                                                   |
                  |                                                |                                                   |             
                  |                                                |                                                   |          
                  |                                 _______________|__________________                                 |      
                  |                                | app/                            |                                | 
                  |________________________________|----------------------------------|________________________________|
                                                   | App.js                         |
                                                   | load-selectClient.js       |
                                                   | load-newClient.js           |
                                                   | load-editClient.js         |
                                                   | load-selectTranslation.js|
                                                   |__________________________________|    
                                                                   |             
                                                                   |
                                                                    ---------------  webpack babel es2016 + uglify --compress --mangle
                                                                   |
                                                    _______________|_________________                               
                                                   |  wwwroot/                     |
                                                   |----------------------------------|                             
                                                   | bundle.demo.js               |
                                                   | index.html                    |
                                                   | package.json                 |
                                                   |__________________________________|  
                                                                   |
                                                                   |
                                                                    ----- Chrome 61 native (Chrome 60 with flags)
                                                                   |
  Web client                                                       |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - HTTP/Intranet
  Web server            |
                        |
                         ------------ http://ordbase.fylkesmannen.local
                        |
         _______________|_________________                               
        | IIS Proxy server                 |  
        |----------------------------------|
        | web.config                    |
        |__________________________________|    
                        |
                        |
                         -------------- dotnet run and http://localhost:5000
                        |               
         _______________|__________________                               
        | .net core Kestrel server         |  
        |----------------------------------|
        | Program.cs                    |
        | OrdBaseCore.csproj          |
        |__________________________________|    
                        |
         _______________|__________________                               
        | ASP MVC middleware               |  
        |----------------------------------|
        | Startup.cs                    |
        |__________________________________|                       __________________________________
                        |                                         | Models/                        |
         _______________|__________________                       |----------------------------------|      
        | Controllers/                 |                      | TranslationDb.cs            |           
        |----------------------------------|                      | Translation.cs               |      
        | TranslationController.cs |                      | TranslationGroup.cs         |                           
        | ClientController.cs        |                      | Client.cs                     |                             
        | ContainerController.cs    |______________________| Container.cs                 |  
        | LanguageController.cs     |                      | Language.cs                   |      
        |__________________________________|                      |__________________________________|      
                        |                                                |        |                
         _______________|__________________                              |        | 
        | Repositories/                |_____________________________|         ------- dotnet ef migrations add
        |----------------------------------|                                      |
        | TranslationRepository.cs |                       ________________|________________________                         
        | ClientRepository.cs        |                      | Migrations/                         |                              
        | ContainerRepository.cs    |                      |----------------------------------------|
        | LanguageRepository.cs     |                      | TranslationDbModelSnapshot.cs |               
        |__________________________________|                      |________________________________________|        
                        |                                                         |
                        |                                                         |
                         ------ DBContext                                          -------- dotnet ef database update
                        |                                                         |
  Web server            |                                                         |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SQL/localhost
  Sql database                                      |
                                     ______________ |__________________                               
                                    | appsettings.demo.json     |
                                    |__________________________________|  
                                                    |
                                                     ------- http://ordbase.fylkesmannen.sql
                                                     -------  + Connection string                                                
                                                    |
                                     ______________ |__________________                               
                                    |                                  |  
                                    | Microsoft SQL Express            |  
                                    |__________________________________|    



            

Data model

Last updated: 04.08.2017 by Jonas Solsvik

    
                



                                _________________________________      __________________________________
                               | ClientContainer.cs        |    | ClientLanguage.cs            |                                          
                               |---------------------------------|    |-----------------------------------|      
                               | string clientKey    { PPK, FK } |    | string    clientKey   { PPK, FK } |      
                               | string containerKey { PPK, FK } |    | ISO_639-1 languageKey { PPK, FK } |      
                               |_________________________________|    |___________________________________|      
                                       | 0..*        0..* |                   | 0..*         0..* |                                        
                                       |                  |                   |                   |                                    
                                       |                  |                   |                   |                                    
                                       |                  |                   |                   |
                                       |                  |                   |                   |
                                       |                  |                   |                   |
                                  1..1 |                  | 1..1         1..1 |                   | 1..1
         ______________________________|___        _______|___________________|______       ______|___________________________                                                                                                                                       
        | Container.cs                 |      | Client.cs                     |     | Language.cs                   |                                 
        |----------------------------------|      |----------------------------------|     |----------------------------------| 
        | string key       { PK }          |      | string key         { PK }        |     | ISO_639-1 key       { PK }       |                               
        |__________________________________|      | string apiKey      { AK }        |     | string    name                   |                               
                          | 1..1                  | url    websiteUrl                |     |__________________________________|                               
                          |                       |__________________________________|                       | 1..1
                          |                                         | 1..1                                   |
                          |                                         |                                        |
                          |                                         |                                        |
                          |                                         | 0..*                                   |
                          |                 0..*   _________________|________________  0..*                  |        
                          |_______________________| Translation.cs               |______________________|  
                                                  |----------------------------------|
                                                  | string clientKey     { PPK, FK } |
                                                  | string languageKey   { PPK, FK } |
                                                  | string containerKey  { PPK, FK } |
                                                  | string key           { PPK }     |
                                                  | string text                      |
                                                  | bool   isComplete                |
                                                  |__________________________________|