Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Component View


Image Added


Database Schema

Content

Code Block
languagejs
titleContent
{
	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
languagejs
titleconfiguration
{
  "type": "string", // framework, channel, form, resource bundle
  "_id": "string",
  "data": "object"
}

Configuration


Code Block
languagepowershell
titleApp 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
languagepowershell
titlePlugin config
DATA_PATH=<path to data>



Data Setup



Download



Import/Export

Content

Telemetry