-
Notifications
You must be signed in to change notification settings - Fork 1
Setup
This project assumes that the following software is installed:
- Python 3 (anaconda)
- Node.js / npm
- MongoDB
Bootstrap scripts can be found in the folder /scripts
The folder /scripts/conda-env contains an environment.yml file that can be used to create an anaconda environment with all dependencies:
conda env create -f environment.yml
This will create an environment called "alm".
For more information about installation and usage of anaconda, see https://www.anaconda.com/
A startup script for mongodb can be found in /scripts/start-scripts. In order for this script to work, the folders that are indicated in the file mongod.conf must exist.
Run the create_initial_data.py script in /scripts/initialize-scripts/:
python 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
From the /frontend/ folder run:
npm install
This will install all dependencies locally.
Run the start scripts startBackend.sh and startFrontend.sh
Open the address http://localhost:8080 in a browser and login as administrator. Open the (hamburger) menu on the left and add a new club (e.g. FC Ami). This club name will translate into the database name fc_ami (lowercase, spaces converted to underscores). This database name must be used in the next steps.
The import data formats are described in json files. An example is given in scripts/initialize-scripts/data/fc_ami_config.json. Per file the columns are described (including internal / database name, data resolvers etc).
This configuration can be imported using the import_configuration script. For this script, two arguments are required: 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
The import configuration has a specific structure. Detailed information can be found in the page Import System
The machine learning configuration is also described as a json file.
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"