Skip to content
ESalomons edited this page Jul 9, 2021 · 7 revisions

Preconditions

  • Python 3
  • Vue.js
  • Node.js (14)
  • MongoDB
  • Flask
  • Git

Helper scripts

There are several scripts that help to set up the environment of this application (location: /scripts/initialize-scripts)

create_initial_data.py

This script creates the initial data needed for an application. Mainly it created a database called "general" and creates an administrator with these credentials:

Email: admin@admin.com
Password: admin

Command to execute the script:

python create_initial_data.py

import_configuration.py

Script used for importing configuration of the import system. For this script, there are required two arguments, database name, and filename. The file needs to be placed in the data folder within the initialize-scripts folder.

Command to execute script:

python import configuration.py <file_name.json> <database_name>

Example:

python import_configuration.py <fc_ami_import_config.json> <fc_ami>

!IMPORTANT

Import configuration needs to have a specific structure. Detailed information can be found in the chapter "Import System"

import_ml_configuration.py

Script used for importing machine learning configuration. For this script, there are required two arguments, database name, and filename. The file needs to be placed in the data folder within the ext_scripts folder.

Command to execute script:

python import_ml_configuration.py <file_name.json> <database_name>

Example:

python import_ml_configuration.py <fc_ami_ml_config.json> <fc_ami>

!IMPORTANT

Import configuration needs to have a specific structure. Detailed information can be found in the chapter "Machine learning"

Clone this wiki locally