Back to services

RELATE

RELATE is a web-based courseware package, includes features such as: flexible rules, statistics, multi-course support, class calendar.

View alternatives to RELATE
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Overview

RELATE is an open-source web-based courseware system built on Python's Django framework by Andreas Klöckner. It focuses on making it easy for instructors to author course content. Content uses a text-based, reusable format built on standard YAML and Markdown, and is tightly integrated with Git for version management. An official sample course repository, relate-sample, is available for reference.

The online activities students take part in within RELATE are collectively called "flows." A flow consists of a series of pages. Each page can be static or interactive content, such as a video, a quiz question, a text page, or anything else that can be done within the limits of HTML.

Key Features

  • Text-based content authoring: Course content is written in YAML and Markdown and stored in a Git repository, which makes it easy to reuse and reduces the risk of being locked into a single system.
  • Git version management: Instructors can preview newly written content while students keep using the previous version, both within the same RELATE instance.
  • Flexible rules: Participation, access, and grading rules can all be configured flexibly.
  • Multi-course hosting: One installation can host multiple courses at the same time.
  • Code questions: Students write code in a text box with syntax highlighting. The code is run in a sandbox and graded automatically, plotting is supported, and an additional round of manual grading can be added.
  • A rich set of question types: These include fill-in-the-blank questions (auto-graded or manually graded), multi-blank questions, single-choice, multiple-choice, surveys, Python programming questions, and file upload questions (manually graded).
  • Course calendar and gradebook.
  • Answer statistics and analysis.
  • Live in-class quizzes.
  • In-class instant messaging: Implemented through XMPP and can be used together with xmpp-popup.
  • REST API, multilingual (i18n) support, and SAML2 and social account login (for example, Google).

Target Users and Use Cases

RELATE suits university instructors and teaching teams who want to control their own course content, especially in science, engineering, and programming courses. Typical uses include homework, online quizzes, automatic grading of programming exercises, live interactive in-class quizzes, and student grade management.

Core Strengths

  • Content is plain text plus Git, which makes collaboration, reuse, and review easy, and makes migration simple as well.
  • Code questions are run in a sandbox and graded automatically, which suits programming courses.
  • The flexible rule system allows fine-grained control over deadlines, access permissions, and grading methods.
  • It uses the MIT license and can be self-hosted for free.

Installation and Deployment

Running RELATE requires Python 3. A development environment also needs Node.js and NPM, and dependencies are managed with uv. The basic steps are as follows:

git clone https://github.com/inducer/relate.git
cd relate
uv sync --all-extras --all-groups --no-group mypy --frozen
cp local_settings_example.py local_settings.py
uv run python manage.py migrate
uv run python manage.py createsuperuser --username=$(whoami)
npm install
npm run build
uv run python manage.py runserver
  • Long-running tasks are handled by a Celery worker process (celery worker -A relate), which requires a message broker, such as RabbitMQ.
  • To run code questions, you need to install Docker and give the user running RELATE access to Docker.
  • The documentation states that Django 6.1 or newer is required, and email is configured through MAILERS.
  • Production deployment recommendations: use PostgreSQL as the database (run uv sync --extra postgres), use nginx as a reverse proxy, manage the application server with systemd (the documentation example uses Granian), and run ./collectstatic.sh to collect static files.
  • If you only want to validate course content, you can do a minimal installation and use the command-line tools.

Notable Characteristics

  • Content has to be authored as text and code. There is no WYSIWYG editor, so getting started requires familiarity with YAML and Git.
  • Deployment involves many components, including Django, Celery, a message broker, Docker, and PostgreSQL, so it suits teams with some operations experience.
  • The source code is hosted on GitHub: inducer/relate.