Component View
Image Added
Database Schema
Content
Code Block |
---|
|
{
document: {
"_id": "string", // content id
"previewUrl": "string",
"keywords": "string[]",
"subject": "string",
"channel": "string",
"downloadUrl": "string",
... // Complete content metadata
},
index: {
}
} |
Telemetry
Each telemetry event is stored as one document on telemetry database there will be no change in the event object.
Code Block |
---|
language | js |
---|
title | configuration |
---|
|
{
"type": "string", // framework, channel, form, resource bundle
"_id": "string",
"data": "object"
} |
Configuration
Code Block |
---|
language | powershell |
---|
title | App config |
---|
|
PORT=9000
API_BASE_URL="https://sunbird.org/api"
CHANNEL=sunbird
COUCHDB_URL=http://admin:password@127.0.0.1:5984
TELEMETRY_SYNC_URL=data/v1/telemetry
TELEMETRY_SYNC_INTERVAL=10
DEVICE_REGISTRY_URL=/api/api-manager/v1/consumer/mobile_device/credential/register |
Code Block |
---|
language | powershell |
---|
title | Plugin config |
---|
|
DATA_PATH=<path to data>
|
Data Setup
Download
Import/Export
Content
Telemetry