Skip to content

The Islandora.ca eBadges Repository application provides a light-weight web front-end for issuing and hosting Open Badges by the Islandora Foundation and possible use by other organizations.

License

Notifications You must be signed in to change notification settings

Islandora-Labs/Islandora-eBadges-Repository

Repository files navigation

Islandora.ca eBadges Repository

This Flask application allows the Islandora.ca foundation to issue Camp, special projects, and other types of Open Badges. Badge class information and individually issued badge images are stored in a Fedora 4 digital repository.

Introduction

The Islandora.ca eBadges Repository application provides a light-weight web front-end for issuing and hosting Open Badges by the Islandora Foundation and possible use by other organizations.

Installation

To install this application, you'll need to install Python 3. Using a virtualenv to isolate your Python environment from the OS version is highly recommended.

Using PIP

This application is available on https://pypi.python.org/ and can be installed from the command-line:

$ pip install IslandoraOpenBadges

From source

To install and use the application from source,

  1. Clone the repository from github

    $ git clone https://github.com/Islandora/Islandora-eBadges-Repository.git

  2. Run setup.py to install

    $ cd Islandora-eBadges-Repository $ python setup.py install

Configuration

This application requires the following variables to be set prior to running;
An application.cfg needs be created in the root directory. This application is a simple text file with the following configuration variables, one per line:

BADGE_ISSUER_NAME = 'Islandora Foundation'
BADGE_ISSUER_URL = 'http://islandora.ca'
FEDORA_BASE_URL = 'http//localhost:8080'

Usage

To run the front-end web application in debug mode using the built-in development web server, run the following command:

$ python badges.py serve --host 0.0.0.0 --port 8100

To create a badge and then issue that badge to individuals requires a running
two commands.

Create a Badge Class

Run the following command and answer the prompts to create a Badge Class:

python badges.py new

Issue an Badge

To issue an Open Badge to an individual that has registered their email address and created an Mozilla Backpack account, run the following:

$ python badges.py issue --email [email protected] --badge IslandoraCampCO

This will return an URL to the issued badge PNG image that the user can then upload to their backpack.

About

The Islandora.ca eBadges Repository application provides a light-weight web front-end for issuing and hosting Open Badges by the Islandora Foundation and possible use by other organizations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published