Giter VIP home page Giter VIP logo

grader-edx's Introduction

Avaliador Externo - Open edX

Requisitos: Python 3.6+, Pip 9+, Mysql 5.7+, edX com XQueue

Referência: External Grader

Configuração XQueue

$ vagrant up # Inicar o edX Fullstack
$ vagrant ssh # Acessar o ambiente com edX
$ sudo -H -u xqueue vim /edx/app/xqueue/xqueue.env.json # Editar o Json de Configuração

No arquivo xqueue.env.json deve ser adicionado o nome da fila, por exemplo py-queue, e o endereço:

  "XQUEUES": {
      ...
      "py-queue": "http://10.0.2.2:1710",
  },

*Necessário reniciar a máquina edX após a mudança.

Configuração e Execução do Avaliador

Criar ambiente virtual Python para isolar as dependências:

$ git clone https://github.com/brnomendes/grader-edx.git
$ cd grader-edx/
$
$ sudo pip install virtualenv
$ virtualenv -p python3 venv # Criar o Ambiente Virtual venv
$ . venv/bin/activate # Utilizar o Ambiente Virtual venv
$
(venv)$ pip install -r requirements.txt

Configurando Banco de Dados:

Variáveis de ambiente a serem configuradas:

  • GRADER_HOST
  • GRADER_USER
  • GRADER_PASSWORD
  • GRADER_DATABASE

Iniciando o Avaliador:

(venv)$ ./start.sh

Criando Exercício para o Avaliador Externo

Exemplo de exercício. Deve ser indicado o nome da fila do avaliador no parâmetro queuename.

<problem>
  <text>
    <p>Create a method and test</p>
  </text>

  <coderesponse queuename="py-queue">
    <textbox mode="python" tabsize="4"/>

    <codeparam>
        <initial_display>
        def foo(x, y):
            pass

        def test_foo():
            pass
        </initial_display>
        <grader_payload>unique_name_of_problem</grader_payload>
    </codeparam>
  </coderesponse>
</problem>

grader-edx's People

Contributors

brnomendes avatar

Stargazers

 avatar

Watchers

 avatar  avatar

grader-edx's Issues

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.