# Configuration
key | type | description | default |
---|---|---|---|
port | Number | port for DataHub server | 9200 |
mode | String | mode for DataHub server | 'prod' |
protocol | String | protocol for DataHub server | 'http' |
database | String | path to file database | $HOME |
store | String | path to migrate directory | undefined |
view | Object | view layer config | {} |
Sample: macaca-datahub.config.js
module.exports = {
mode: 'local',
port: 7001,
store: path.resolve(__dirname, 'data'),
};
You can also use the Third-part UI platform, for example use datahub-platform, only need to point assetsUrl
.
module.exports = {
view: {
assetsUrl: 'https://unpkg.com/datahub-platform@latest',
},
};
Pass config file[.js
|.json
] to DataHub server.
$ datahub server -c path/to/config.js --verbose
# Database
DataHub's data persistence relies on sqllite, and database management software can view the data in DataHub.
$ cd $HOME/.macaca-datahub