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.
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
Create a Badge Class
Run the following command and answer the prompts to create a Badge Class:
python badges.py new
Issue an Badge
$ python badges.py issue --email firstname.lastname@example.org --badge IslandoraCampCO
This will return an URL to the issued badge PNG image that the user can then upload to their backpack.