Open giasiranisst opened 5 years ago
Hi @giasiranisst, I'm not quite sure I understand your question. How familiar are you with the edx-platform? Have you been able to install other Xblocks before?
You should just be able to copy those settings directly, and paste them into your own lms.env.json file.
You can add any configuration you want, it's a simple configuration file. Here is an example https://blog.lawrencemcdaniel.com/sample-open-edx-lms-env-json/
Thank you for your answer. Sorry, but I am new to Edx and xBlocks.
Please, tell me which of the two options is the right one. 1) In the lms.env.json there is a section "XBLOCK_SETTINGS": {}, There, I will put, ONLY, the folowing code? "BadgrXBlock": { "BADGR_API_TOKEN": "", "BADGR_BASE_URL": "https://badgr.io/" } This rest code where to put it? Anywhere in the json? Somewhere else? BADGR_API_TOKEN: "" BADGR_BASE_URL: "https://badgr.io/" BADGR_ISSUER_SLUG: Your oganisation's issuer slug goes here
2) Will I put all the code anywhere in the json file or into a specific section?
Thanks in advance!
Hi @giasiranisst, no problem. Yes, that is correct, you will put only the following
"BadgrXBlock": {
"BADGR_API_TOKEN": "",
"BADGR_BASE_URL": "https://badgr.io/"
}
in "XBLOCK_SETTINGS": {},
and yes, you can put these settings anywhere in the lms.env.json file, I usually put it right at the top.
BADGR_API_TOKEN: "",
BADGR_BASE_URL: "https://badgr.io/",
BADGR_ISSUER_SLUG: Your oganisation's issuer slug goes here,
don't forget to put the comma's.
Good luck, let me know if you have any other issues.
Unfortunately, this xblock only works with this forked version of the edx-platform (https://github.com/proversity-org/edx-platform)
Thank you for your help!
Please two more questions.
1) Will I put this code below or above the first { ? BADGR_API_TOKEN: "", BADGR_BASE_URL: "https://badgr.io/", BADGR_ISSUER_SLUG: Your oganisation's issuer slug goes here,
2) the TOKEN will remain empty or I will put something and where can I find it?
Thanks in advance!
I put the code BADGR_API_TOKEN: "", BADGR_BASE_URL: "https://badgr.io/", BADGR_ISSUER_SLUG: Your oganisation's issuer slug goes here, above the first {
I restarted the lms and cms but I don't see the badgr xblock in advance blocks.
I change the json file after the installation. Should I do it before the installation? If yes how can I uninstall the xblock?
When I restarted the lms, cms and worker, the servers encounters an erron appear and a sinking boat. How can I fix it?
Hello,
I am trying to install the xblock but I don't understant where the SETTINGS are. In lms.env.json there isn't such section.
Thanks in advance