Skip to main content

A Flashcards XBlock for Open edX.

Project description

FlashcardsXBlock

An Open edX platform XBlock to create and display flashcards.

Installation

In a Tutor deployment, you can add it to OPENEDX_EXTRA_PIP_REQUIREMENTS, installing from git:

OPENEDX_EXTRA_PIP_REQUIREMENTS:
- git+https://github.com/open-craft/FlashcardsXBlock.git@main

Or from a Pypi release:

OPENEDX_EXTRA_PIP_REQUIREMENTS:
- FlashcardsXBlock==1.0.1

Usage

Once the Flashcards XBlock is installed in the Open edX environment, you can navigate to the "Advanced settings" of the course in Studio or Authoring, then add "flashcards" to the "Advanced module list".

Then navigate to the unit in the course where you want to add a Flashcards component, and select "Flashcards" from the "Advanced" component list.

Screenshots

Student view:

student view: starting screen

student view: a flashcard

Editing modal in Authoring:

edit view: edit screen one, where you can select theming

edit view: edit screen two, where you can enter flashcard content

Development notes

  • There is a Github workflow that automatically creates Pypi releases when you create a release on Github.

Frontend

The frontend is built using Typescript and React; it must be built before it can be used. See ./mise.toml and ./frontend/package.json for available tasks. An example development workflow could look something like this:

# install dependencies
mise run frontend-install

# run a development server with hot-reloading
mise run frontend-dev

# edit the frontend files

# when ready, kill the dev server, and build the frontend.
# If you have this XBlock installed on your Open edX devstack, you can then refresh the page to see updates in live components in a course on the devstack.
mise run frontend-build

# check the unit tests
mise run frontend-test

Want to contribute?

If you have a suggestion, question or found a bug, please open an issue.

If you would like to contribute code, please open a pull request with details about the changes that you propose.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flashcardsxblock-1.0.2rc1.tar.gz (787.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flashcardsxblock-1.0.2rc1-py3-none-any.whl (794.3 kB view details)

Uploaded Python 3

File details

Details for the file flashcardsxblock-1.0.2rc1.tar.gz.

File metadata

  • Download URL: flashcardsxblock-1.0.2rc1.tar.gz
  • Upload date:
  • Size: 787.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for flashcardsxblock-1.0.2rc1.tar.gz
Algorithm Hash digest
SHA256 397954fba95a675ffb2d237ab4685a3d0b7203a788c4f84edaebbc452549fadb
MD5 2134e90b114781a2a64e525b90fad9df
BLAKE2b-256 9c7aad663f92c8f19bfe047b6d5554c90687dad8af291e7c4d59eefd302956a1

See more details on using hashes here.

File details

Details for the file flashcardsxblock-1.0.2rc1-py3-none-any.whl.

File metadata

  • Download URL: flashcardsxblock-1.0.2rc1-py3-none-any.whl
  • Upload date:
  • Size: 794.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for flashcardsxblock-1.0.2rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 409ff299cfe49804c5622cae77c84974d975d7e447f1db6ec9ecb10e0fb2c9c0
MD5 620b6b54f5ed46c8525c80f74a5cba3f
BLAKE2b-256 d11fb8066ea42ff5c85f1f69a30a242aeb33464443b2ee8f60cccffbc5344953

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page