An XBlock for Empowr's course platform that allows for the input and checking of any programming language.
-
Make sure you have have Python 3.8 installed on your computer.
-
Clone the repo with
git clone --recurse-submodules [email protected]:EmpowrOrg/CodeEditorXblock.git
. This will give you the repo including the xblock-sdk submodule. -
Create and Activate the Virtual Environment:
You must have a virtual environment tool installed on your computer. For more information, see Install XBlock Prerequisites .
Then create the virtual environment in your CodeEditorXblock directory.
At the command prompt in CodeEditorXblock, run the following command to create the virtual environment.
virtualenv venv
Run the following command to activate the virtual environment.
source venv/bin/activate
Install the plugin with
pip install -e swiftplugin
- Navigate to the xblock-sdk directory and run the following command to install the requirements.
pip install -r requirements/base.txt
Navigate to the xblock-sdk directory and run the following commands.
make install
python manage.py migrate
python manage.py runserver