Skip to main content

Adminmate.js

The adminmate.js file present in the config/ directory is the main Adminmate configuration file.

The file structure should contains the following properties:

{
projectId: process.env.AM_PROJECT_ID,
secretKey: process.env.AM_SECRET_KEY,
authKey: process.env.AM_AUTH_KEY,
masterPassword: process.env.AM_MASTER_PWD,
models: [
...YOUR_MODELS_CONFIG
],
charts: [
...YOUR_CUSTOM_CHARTS
],
authorizedIps: [
...YOUR_WHITELISTED_IPS
]
}

The only required fields are the projectId, secretKey, authKey, masterPassword and models array.

In the following sections, the configuration will take place in this file and mainly in the models array.