Git Product home page Git Product logo

mooc-exercisemdf's Introduction

mooc-ExerciseMdf

openedx的xblock开发,用于修改Github上的题目,操作系统课程使用。

使用方法说明

这个XBlock提供五种类型题目的编辑功能(新建,编辑),五种类型的题目主要分别如下:

类型 描述
判断题 选择题,只有两个选项(对,错),只有一个正确答案
单选题 选择题,一般4个选项,只有一个正确答案
多选题 选择题,一般4个选项,至少有一个正确答案
填空题 填空题,一题可以有多个空,每个空的答案一般较短
问答题 填空题,一题对应一个答题区域,答案一般较长

在使用XBlock时,通过新建按钮来选择创建的题目类型,大部分题目根据提示即可完成编辑。需要一提的是填空题的编辑,因为每个题目里有多个空,我们通过字母编号(A,B,C等)来为每一个填空编号,在编辑时,通过添加选项按钮来增加编号。

XBlock部署方法

需要服务器上已经部署OpenEdx,并且开启自定义XBlock的功能,否则部署的XBlock在OpenEdx Studio上不会显示

把代码clone到服务器,并将所有者设为edxapp

$ git clone https://github.com/Heaven1881/mooc-ExerciseMdf.git
$ sudo chown -R edxapp:edxapp mooc-ExerciseMdf/

安装XBlock

$ sudo -u edxapp /edx/bin/pip.edxapp install /path/to/your/xblock

在文件夹/edx/var/edxapp/staticfiles/下新建文件夹exercisemdf/,并将文件夹staticfiles/下的文件夹拷贝到/edx/var/edxapp/staticfiles/中,同时增加所有人对其的读权限

$ sudo mkdir -p /edx/var/edxapp/staticfiles/exercisemdf
$ sudo cp -r staticfiles/* /edx/var/edxapp/staticfiles/exercisemdf/
$ sudo chmod a+r -R /edx/var/edxapp/staticfiles/exercisemdf/

在Studio中把在线代码编辑器block添加到课程的高级设置中。 0. 登录到Studio,打开你的课程 0. settings->Advanced Setting 0. 在"advanced_modules"的值后添加"exercisemdf"

重启edx服务

$ sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp:

重启之后就可以在Studio中看到并使用该组件

相关问题

  • 安装完毕之后,并没有在Studio中找到安装的XBlock
  • 请确认用户www-data对路径/edx/app/edxapp/lib/python2.7/site-package/exercisemdf以及/edx/app/edxapp/lib/python2.7/site-package/exercisemdf_xblock.egg-info有读权限,如果之前的配置没有问题,那么大多数情况是因为OpenEdx对新安装的XBlock没有读权限

mooc-exercisemdf's People

Contributors

wintonluo avatar

Watchers

James Cloos avatar chyyuu avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.