Configuration File

Configuration Options

The configuration file is called evconfig.json containing Everflow’s global configurations. You can modify its properties listed below before bootstrapping your application:

Placement is next to your main.ts file in your root src folder.

routerMode

Tells Everflow to use hash or history routing with Vue Router

{
  "routerMode": "hash", //or history
}

mountId

Tells Everflow what HTML ID to mount the Vue Router

apiURL

Tells Everflow what your API entry point is

i18n

I18n information for your application

i18n / Options

enabled

Enables i18n loading in application

defaultLocale

The default i18n locale

fallbackLocale

The fallback locale for if the default locale fails. user is a custom type to Everflow and will detect the users browsers language.

modules

I18n with modules enabled keeps all locales modules separated

IF true all translations must start with a module name unless stored in the root i18n folder.
$t(‘<module_name>.message.hello’)

IF `false` all translations merge and will overwrite from each module.
$t('message.hello')

security

Security information for your application

security / Options

key

A 256 bit key for AES encryption, generated if installed Everflow via Vue Cli 3

storage

Security information for your application

security / Options

TODO…

datetime

Date and time information for your application

date

Moment.js date serialization format. Formats here

time

Moment.js time serialization format. Formats here

Example evconfig.json

{
    "routerMode": "hash",
    "mountId": "app",
    "apiURL": "https://localhost:8080",
    "i18n": {
        "enabled": true,
        "defaultLocale": "user",
        "fallbackLocale": "en",
        "modules": true
    },
    "security": {
        "key": "<AES_KEY>"
    },
    "storage": {
        "name": "everflow",
        "driver": ["asyncStorage"],
        "size": 4980736,
        "storeName": "app"
    },
    "datetime": {
        "date": {
            "format": "YYYY-MM-DD"
        },
        "time": {
            "format": "HH:mm:ss"
        }
    }
}