This is our third take on badges! It boils down to this: Create a badge, submit a project for a badge, get feedback and revise your project, receive the badge, give feedback and build the value of the badge you have by being part of an awesome community around it!
This project is written using django. To get up and running for development
- Make a local copy of the code:
git clone https://github.com/p2pu/badges
- Init submodules:
git submodule init
- Fetch submodules:
git submodule update
- Install python and virtualenv (changes are good you already have them)
- Create a new virtual environment somewhere:
virtualenv /path/to/somewhere
- Activate the virtual environment:
source /path/to/somewhere/bin/activate
- Install dependancies:
pip install -r /path/to/code/badges/requirements.txt
- Install the sass compiler:
- Install ruby
apt get install ruby
(or user rbenv) - Clone the sass git repository
git clone git://github.com/nex3/sass.git
- Install sass
cd /path/to/sass/
andrake install
- Install ruby
- Copy settings_local.dist.py to settings_local.py
- Sync database:
python /path/to/code/badges/manage.py syncdb
- Load some test data:
python /path/to/code/badges/manage.py load_test_data /path/to/code/testdata/test_data.json
- Run development server:
python /path/to/code/badges/manage.py runserver
- Go to http://localhost:8000/ and play around
- And lastly, fix all the bugs, add cool new features and take over the world :)
Documentation:
- Badges/Technology https://wiki.mozilla.org/Badges/Technology
- Assertions https://github.com/mozilla/openbadges/wiki/Assertions
Setup Development Environment:
- Prepare validator
- user online http://validator.openbadges.org/
- or install validator locally
- $ install nodejs and npm
- $ git clone https://github.com/mozilla/openbadges-validator-service.git
- $ cd openbadges-validator-service
- $ npm install
- $ node app.js
- point your browser to http://localhost:8888
- Amend settings_local.py
- set OPEN_BADGES_PUBLIC_URL to your development box (and later to production public url)
- if using local validator, OPEN_BADGES_PUBLIC_URL='http://localhost:8000'
- otherwise play with ssh remote tunneling and set OPEN_BADGES_PUBLIC_URL accordingly
- Open Badges urls:
- OPEN_BADGES_PUBLIC_URL/openbadges/assertions/
- OPEN_BADGES_PUBLIC_URL/openbadges/badge/<badge_id>
- OPEN_BADGES_PUBLIC_URL/openbadges/organisation