dos2unix start.sh
docker compose -f docker-compose.yml -f docker-compose-local-setup.yml build
docker compose -f docker-compose.yml -f docker-compose-local-setup.yml up
docker compose -f docker-compose.yml -f docker-compose-local-setup.yml down
docker compose -f docker-compose.yml -f docker-compose-local-setup.yml build
docker compose -f docker-compose.yml -f docker-compose-local-setup.yml up
docker compose -f docker-compose.yml -f docker-compose-local-setup.yml down
For the API to function properly, a number of environment variables must be set:
This setting lets the app know what kinds of values to expect as KPI data. It can be one of three values: Possible values are:
integer
- Float values can still be processed but will be rounded to the nearest integer.fraction
- Float values rounded to 2 decimal places.bool
- Bool values should be set as 1 or 0.
This setting determines how user’s scores will be calculated from KPI data. Possible values are:
weightedaverage
- Score will be calculated by multiplying KPI values by their associated weights, and then finding the mean of the results.sum
- Score will be calculated by summing KPI values together.mode
- Score will be calculated by finding the most commonly occurring KPI value.last_value
- Score will be equal to the KPI value with the most recent timestamp.
Please note that certain aggregation methods will not work with some data types. Therefore the following combinations of data types and aggregation methods are not valid:
bool
&weightedaverage
bool
&sum
This setting determines the timeframe within which KPI values will be taken into account for calculating user’s scores. Possible values are:
daily
weekly
monthly
Note that these base periods start from the beginning of that period, i.e. monthly will be from the 1st of the month and NOT from 30 days ago. Likewise, weekly will be from Monday at 00:00 and NOT from 7 days ago.
The address of the email account used by the app to send emails.
The password of the email account used by the app to send emails.
The email address that balance withdrawal requests will be sent to for processing.
The following environment variables must be set to configure authentication.
Must be set to a true
or false
value. This setting determines whether or not users are allowed to register without having first received an invitation.
Must be set to a true
or false
value. This setting determines whether passwords will expire and need to be changed at regular intervals. The expiration time is determined by the value of EXPIRE_PASSWORD_IN_DAYS
.
Must be an integer value. This setting determines how many days a password remains valid for before it is considered expired and must be changed. This setting only has an effect if PASSWORD_EXPIRE_SECURITY
is set to true
.
Must be an integer value. This determines the number of failed login attempts a user may make before their account is locked.
Must be an integer value. This determines how many minutes a users account will remain locked for after exceeding the maximum number of failed login attempts.
Must be an integer value. Determines the minimum length allowed for passwords.
Must be an integer value. Determines the maximum length allowed for passwords.
Must be a boolean value. If true, password validation will enforce that passwords must contain at least one lowercase character.
Must be a boolean value. If true, password validation will enforce that passwords must contain at least one uppercase character.
Must be a boolean value. If true, password validation will enforce that passwords must contain at least one numeric character.
Must be a boolean value. If true, password validation will enforce that passwords must contain at least one special character.
This is required to enable deeplinking from app generated emails directly into the iOS app (or to the AppStore if the app is not installed on the user's device).
This is required to enable deeplinking from app generated emails directly into the Android app (or to the PlayStore if the app is not installed on the user's device).
Must be a boolean value. This setting determines whether or not this instance is a Feeder World. This setting will drastically change the behaviour of the app and should only be used when the app is being deployed alongside a Global World.
Must be a boolean value. This setting determines whether or not KPI data will be retained after it is exported to the Global World. If set to true, exported KPI data will removed from the database and archived as SQL dump files.