https://github.com/p2pu/badges
At P2PU, learning is guided by people, passion, and projects. We’ve created this Badge platform to spark feedback between Experts and Learners about their learning projects. A Badge is symbol of mastery that comes out of those conversations. Here you’ll find out how Badges work, and some resources to build your own.
https://github.com/p2pu/badges
Last synced: about 1 year ago
JSON representation
At P2PU, learning is guided by people, passion, and projects. We’ve created this Badge platform to spark feedback between Experts and Learners about their learning projects. A Badge is symbol of mastery that comes out of those conversations. Here you’ll find out how Badges work, and some resources to build your own.
- Host: GitHub
- URL: https://github.com/p2pu/badges
- Owner: p2pu
- Created: 2013-02-11T09:37:40.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-06-28T11:40:17.000Z (almost 3 years ago)
- Last Synced: 2024-04-14T22:12:19.405Z (about 2 years ago)
- Language: Python
- Homepage: http://badges.p2pu.org/
- Size: 4.39 MB
- Stars: 13
- Watchers: 14
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Badges [](https://travis-ci.org/ercchy/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. Most dependencies are handled by Pip, but there are a few initial system requirements.
### System Requirements
The following packages need to be installed on your system:
* [Python](http://python.org) 2.7+
* [Virtualenv](http://virtualenv.org)
* [Git](http://git-scm.com)
* [PostgreSQL](http://postgresql.org) and PostgreSQL-dev
* [Ruby](http://ruby-lang.org)
### e.g. installation on Ubuntu Linux
Ruby and Python come pre-installed on Ubuntu Linux.
#### PostgreSQL
To install the additional dependencies on Ubuntu Linux, use a graphical package manager or the following commands in Terminal:
```sh
sudo apt-get install postgresql postgresql-server-dev-all
```
#### virtualenv / virtualenvwrapper
```sh
sudo pip install virtualenv virtualenvwrapper
```
To complete the virtualenvwrapper installation, follow the [virtualenv installation instructions](http://virtualenvwrapper.readthedocs.org/en/latest/install.html).
#### SASS
The SASS package can be installed through Ruby Gems.
```sh
sudo gem install sass
```
### Install Badges
To get up and running for development
#### Create a virtual environment
1. Create a new virtual environment: ```mkvirtualenv p2pu-badges```
1. Activate the virtual environment: ```workon p2pu-badges```
#### Get the code
1. Make a local copy of the code: ```git clone https://github.com/p2pu/badges```
1. Move into the code directory: ```cd badges```
1. Init submodules: ```git submodule init```
1. Fetch submodules: ```git submodule update```
#### Install additional dependencies
```sh
pip install -r badges/requirements.txt
```
#### Create a local settings file
Copy settings_local.dist.py to settings_local.py
**Note:** settings_local.dist.py is located in the subfolder **/path/to/code/badges/badges/**
```sh
cp badges/badges/settings_local.dist.py badges/badges/settings_local.py
```
#### Set up the database
1. Sync database: ```python badges/manage.py syncdb```
1. Migrate the database schema: ```python badges/manage.py migrate```
1. Load some test data: ```python badges/manage.py load_test_data testdata/test_data.json```
#### Start the server
1. Run development server: ```python badges/manage.py runserver```
1. Go to http://localhost:8000/ and play around
#### Enjoy!
And lastly, fix all the bugs, add cool new features and take over the world :)
### Mozilla Open Badge Integration and Development
Documentation:
* Badges/Technology https://wiki.mozilla.org/Badges/Technology
* Assertions https://github.com/mozilla/openbadges/wiki/Assertions
Setup Development Environment:
1. 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
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
1. Open Badges urls:
* OPEN_BADGES_PUBLIC_URL/openbadges/assertions/
* OPEN_BADGES_PUBLIC_URL/openbadges/badge/
* OPEN_BADGES_PUBLIC_URL/openbadges/organisation