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.
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.
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.
This application is available on https://pypi.python.org/ and can be installed from the command-line:
$ pip install IslandoraOpenBadges
To install and use the application from source,
-
Clone the repository from github
$ git clone https://github.com/Islandora/Islandora-eBadges-Repository.git
-
Run setup.py to install
$ cd Islandora-eBadges-Repository
$ python setup.py install
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'
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.
Run the following command and answer the prompts to create a Badge Class:
python badges.py new
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.