|
3 | 3 | ## Starting the repository
|
4 | 4 | This section describes how to start the repository
|
5 | 5 |
|
| 6 | +## Metadata structure |
| 7 | +The metadata object structure and key explanations can be seen here |
| 8 | +```js |
| 9 | +{ |
| 10 | + CreationDate: "some_number_of_ms_since_1970", |
| 11 | + GenerationTree : { |
| 12 | + Children: null, |
| 13 | + GeneratedFrom: { |
| 14 | + SourceHost: "hostname_of_miner_that_created_this_resource", |
| 15 | + SourceId: "id_of_miner_that_created_this_resource", |
| 16 | + SourceLabel: "name_of_miner_that_created_this_resource" |
| 17 | + }, |
| 18 | + Parents: [ |
| 19 | + { |
| 20 | + ResourceId: "parent_resourceId", |
| 21 | + UsedAs: "miner_config_ResourceInput_value" |
| 22 | + } |
| 23 | + ] |
| 24 | + }, |
| 25 | + ResourceId: "id_of_self_generated_from_repository", |
| 26 | + ResourceInfo: { |
| 27 | + Description: "description_of_self", |
| 28 | + Dynamic: false, // Shows if resource can change |
| 29 | + FileExtension: "file_extension_of_self e.g. png, pnml, bpmn", |
| 30 | + Host: "{hostname}/resources/", |
| 31 | + ResourceLabel: "name_of_self", |
| 32 | + ResourceType: "EventStream || ProcessModel || PetriNet || Histogram", |
| 33 | + StreamTopic: "topic_of_self_if_stream", |
| 34 | + }, |
| 35 | + fileContent: the_file_contents, |
| 36 | + repositoryUrl: used_to_request_the_actual_file |
| 37 | + processId: reference_to_process_that_created_file |
| 38 | +} |
| 39 | +``` |
| 40 | + |
| 41 | +How this information is used for this project: |
| 42 | + |
| 43 | +1. <b>CreationDate:</b> This is used for sorting files, as well as a deplay value on file cards in the sidebar. Utility functions found in /src/Utils/Utils are used to convert the format into human readable information. |
| 44 | +2. <b>Generation tree:</b> This is information is only used in repository. |
| 45 | +3. <b>ResourceId:</b> The metadata is stored in localMemory using this key, and therefore the key to accessing the information from a specific file. |
| 46 | +4. <b>ResourceInfo:</b> |
| 47 | + 1. <b>Description:</b> Not implemented. Intented for additional information. |
| 48 | + 2. <b>Dynamic:</b> Is resource expected to update. Resource will be requested in regular intervals when selected in the visualizations screen (only the file that is selected). |
| 49 | + 3. <b>FileExtension:</b> Used by miner and repository for running and saving. |
| 50 | + 4. <b>Host:</b> Owner of the file. Used to request for updates, or by miner to fetch the file from repository. |
| 51 | + 5. <b>ResourceLabel:</b> The name of the file seen everywhere on the frontend. |
| 52 | + 6. <b>ResourceType:</b> Used to determine which visualization can be displayed. Also used to filter input files when running a miner, to only provide allowed files. |
| 53 | + 7. <b>StreamTopic:</b> A pointer to a stream on a broker located on the address showed in the "Host" attibute. |
| 54 | +5. <b>FileContent:</b> This key only exist in the frontend, and holds the file data. This could be a BPMN string, a saved image or otherwise. |
| 55 | +6. <b>repositoryUrl:</b> This key is used as a reference to get the actual files content. |
| 56 | +7. <b>ProcessId:</b> Reference to the process that spawned this file. This is created when starting a process from the frontend, and saved in the output files object on this key. |
| 57 | + |
| 58 | +## File storage structure |
| 59 | + |
6 | 60 | ## Add a database
|
7 | 61 | This section describes how to connect a database to the repository
|
8 | 62 |
|
@@ -87,4 +141,4 @@ docker build -t <Image_name> .
|
87 | 141 | docker run -d -p 4001:80 -p 4000:4000 -e ASPNETCORE_URLS="https://+;http://+" -e ASPNETCORE_HTTPS_PORT=4000 -e ASPNETCORE_Kestrel__Certificates__Default__Password="<CREDENTIAL_PLACEHOLDER>" -e ASPNETCORE_Kestrel__Certificates__Default__Path=/https/<EXACT_PROJECT_NAME>.pfx -v %USERPROFILE%\.aspnet\https:/https/ --name <Container_name> <Image_name>
|
88 | 142 | ```
|
89 | 143 |
|
90 |
| -If it is desired to update the docker-compose file to run a secure connection with this project, we recommend looking at ASP.NET dockumentation: https://learn.microsoft.com/en-us/aspnet/core/security/docker-compose-https?view=aspnetcore-7.0 |
| 144 | +If it is desired to update the docker-compose file to run a secure connection with this project, we recommend looking at ASP.NET documentation: https://learn.microsoft.com/en-us/aspnet/core/security/docker-compose-https?view=aspnetcore-7.0 |
0 commit comments