The badgr-xblock was developed to work in conjunction with the open source Badgr Server application or the hosted version at Badgr.io, developed by Concentric Sky.
The badgr-xblock communicates with the Badgr API, and awards badges based on a passing grade for a specified subsection in a course.
Visit Badgr's API Documentation for more information.
$ sudo su edxapp -s /bin/bash
$ cd ~ && source edxapp_env
$ cd /edx/app/edxapp/edx-platform
$ pip install -U -e git+https://github.com/proversity-org/badgr-xblock#egg=badgr-xblock
$ exit && /edx/bin/supervisorctl restart edxapp:
Add the following to SETTINGS
and XBLOCK_SETTINGS
inside lms.env.json
:
BADGR_API_TOKEN: "*****************************************"
BADGR_BASE_URL: "https://badgr.io/"
BADGR_ISSUER_SLUG: *Your oganisation's issuer slug goes here*
"XBLOCK_SETTINGS": {
"BadgrXBlock": {
"BADGR_API_TOKEN": "*****************************************",
"BADGR_BASE_URL": "https://badgr.io/"
}
},
Then add your xblock
on Advanced Settings
of the course as badgr
in Advanced Module List
If you intend to use this xblock whilst having multiple issuers for your Open EdX Instance, then you will need to implement the changes in this commit to the badges app in edx-platform.