The Reddin X-Block is a custom X-Block designed for Reddin integration with the edX platform. It provides a seamless way to incorporate interactive polls and quizzes Reddin into your edX courses.
To install the Reddin X-Block on your edX platform, follow these steps:
-
Clone the repository:
git clone https://github.com/raccoongang/reddin.git
-
Navigate to the
reddin
directory:cd reddin
-
Install the X-Block:
pip install .
-
Restart the edX platform.
-
Add
reddin
to the Advanced Module List in your course Advanced Settings.
Once installed and enabled, you can add the Reddin X-Block to your edX courseware. Follow these steps to incorporate polls or quizzes into your course:
- Navigate to the unit where you want to add the Reddin X-Block.
- Click on the "Advanced" button in "Add New Component" .
- Select "Reddin XBlock" from the list of available components.
- In the X-Block settings, you need to add a link to the required iframe in the "Reddin URL" field, and if the link contains GET parameters, they should be added to the corresponding field in json format.
- Save your changes and preview the X-Block in the courseware.
For correct operation, you need to add REDDIN_SECRET_KEY
to the settings.
The LMS and Studio urls must be added to the CORS whitelist on the site side of the iframe used in the block, or the site and LMS and Studio must be on the same domain to share cookies.