WebUi

Local Configuration

To customize QCG for your environment, you need to modify the configuration file located at:
WebUi/QualityControl/config.js

HTTP Configuration

In the http section, you can define the HTTP endpoint settings for the application:

Example:

http: {
  hostname: 'localhost',
  port: 3000
}

CCDB Configuration

In the ccdb section, you can define the endpoint settings for the CCDB (Condition and Calibration Data Base), used to store calibration and alignment data.

You can customize the following parameters:

ccdb: {
  protocol: 'http',
  hostname: 'localhost',
  port: '8080',
  prefix: '',
  cachePrefix: 'qc',
  cacheRefreshRate: 120 * 1000
}

BOOKKEEPING

Attribute to define the Bookkeeping endpoint. If this configuration is not provided, QCG will not proceed with the setup of Bookkeeping service and it will not fetch data from it. Same behavior if the configuration provided is not valid.

bookkeeping: {
  url: 'http://localhost:4000',
  token: 'example-token',
  refreshRate: 15000000
}


### QC Environment Configuration
In the qc section, you can define whether QCG should be started as part of a Quality Control (QC) integrated environment.

- `enabled`: Set this to true if QCG should be part of an integrated QC environment, or false to disable this feature.
```javascript
qc: {
  enabled: false
}

Database Configuration

The application requires the following database configuration parameters: | Field | Description | |—————–|———————————————————————————————| | host | Hostname or IP address of the database server. | | port | Port number used to connect to the database server. | | username | Username for authenticating with the database. | | password | Password for the specified database user. | | database | Name of the database to connect to. | | charset | Character encoding used for the connection. | | collate | Collation setting used for string comparison and sorting. | | timezone | Time zone used for all date/time values in the database connection. | | logging | Enables or disables SQL query logging (useful for debugging). | | retryThrottle | Time in milliseconds to wait before retrying a failed database connection. | | migrationSeed | (Optional) Set to true to execute seeders that populate the database with mock data. |