Skip to content

mozzadrella/badges

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

badges

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!

Installation

This project is written using django. To get up and running for development

  1. Make a local copy of the code: git clone https://github.com/p2pu/badges
  2. Init submodules: git submodule init
  3. Fetch submodules: git submodule update
  4. Install python and virtualenv (changes are good you already have them)
  5. Create a new virtual environment somewhere: virtualenv /path/to/somewhere
  6. Activate the virtual environment: source /path/to/somewhere/bin/activate
  7. Install dependancies: pip install -r /path/to/code/badges/requirements.txt
  8. 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/ and rake install
  9. Copy settings_local.dist.py to settings_local.py
  10. Sync database: python /path/to/code/badges/manage.py syncdb
  11. Load some test data: python /path/to/code/badges/manage.py load_test_data /path/to/code/testdata/test_data.json
  12. Run development server: python /path/to/code/badges/manage.py runserver
  13. Go to http://localhost:8000/ and play around
  14. And lastly, fix all the bugs, add cool new features and take over the world :)

Mozilla Open Badge Integration and Development

Documentation:

Setup Development Environment:

  1. Prepare validator
  1. 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
  2. Open Badges urls:
  • OPEN_BADGES_PUBLIC_URL/openbadges/assertions/
  • OPEN_BADGES_PUBLIC_URL/openbadges/badge/<badge_id>
  • OPEN_BADGES_PUBLIC_URL/openbadges/organisation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 72.3%
  • JavaScript 14.1%
  • Python 13.6%