{"id":18793153,"url":"https://github.com/p2pu/badges","last_synced_at":"2025-04-13T14:31:57.042Z","repository":{"id":6886111,"uuid":"8135531","full_name":"p2pu/badges","owner":"p2pu","description":"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.","archived":false,"fork":false,"pushed_at":"2023-06-28T11:40:17.000Z","size":4600,"stargazers_count":13,"open_issues_count":5,"forks_count":10,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-04-14T22:12:19.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://badges.p2pu.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p2pu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-11T09:37:40.000Z","updated_at":"2023-07-10T15:46:24.000Z","dependencies_parsed_at":"2022-07-09T14:30:37.444Z","dependency_job_id":null,"html_url":"https://github.com/p2pu/badges","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2pu%2Fbadges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2pu%2Fbadges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2pu%2Fbadges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p2pu%2Fbadges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p2pu","download_url":"https://codeload.github.com/p2pu/badges/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223590384,"owners_count":17170116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T21:23:49.262Z","updated_at":"2024-11-07T21:23:49.877Z","avatar_url":"https://github.com/p2pu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Badges [![Build Status](https://travis-ci.org/ercchy/badges.png?branch=master)](https://travis-ci.org/ercchy/badges)\n======\n\nThis 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!\n\n## Installation\n\nThis project is written using django. Most dependencies are handled by Pip, but there are a few initial system requirements.\n\n### System Requirements\nThe following packages need to be installed on your system:\n* [Python](http://python.org) 2.7+\n* [Virtualenv](http://virtualenv.org)\n* [Git](http://git-scm.com)\n* [PostgreSQL](http://postgresql.org) and PostgreSQL-dev\n* [Ruby](http://ruby-lang.org)\n\n### e.g. installation on Ubuntu Linux\nRuby and Python come pre-installed on Ubuntu Linux.\n\n#### PostgreSQL\nTo install the additional dependencies on Ubuntu Linux, use a graphical package manager or the following commands in Terminal:\n```sh\nsudo apt-get install postgresql postgresql-server-dev-all\n```\n\n#### virtualenv / virtualenvwrapper\n```sh\nsudo pip install virtualenv virtualenvwrapper\n```\n\nTo complete the virtualenvwrapper installation, follow the [virtualenv installation instructions](http://virtualenvwrapper.readthedocs.org/en/latest/install.html).\n\n#### SASS\nThe SASS package can be installed through Ruby Gems.\n```sh\nsudo gem install sass\n```\n\n### Install Badges\nTo get up and running for development\n\n#### Create a virtual environment\n1. Create a new virtual environment: ```mkvirtualenv p2pu-badges```\n1. Activate the virtual environment: ```workon p2pu-badges```\n\n#### Get the code\n1. Make a local copy of the code: ```git clone https://github.com/p2pu/badges```\n1. Move into the code directory: ```cd badges```\n1. Init submodules: ```git submodule init```\n1. Fetch submodules: ```git submodule update```\n\n#### Install additional dependencies\n```sh\npip install -r badges/requirements.txt\n```\n\n#### Create a local settings file\nCopy settings_local.dist.py to settings_local.py\n\n**Note:** settings_local.dist.py is located in the subfolder **/path/to/code/badges/badges/**\n\n```sh\ncp badges/badges/settings_local.dist.py badges/badges/settings_local.py\n```\n\n#### Set up the database\n1. Sync database: ```python badges/manage.py syncdb```\n1. Migrate the database schema: ```python badges/manage.py migrate```\n1. Load some test data: ```python badges/manage.py load_test_data testdata/test_data.json```\n\n#### Start the server\n1. Run development server: ```python badges/manage.py runserver```\n1. Go to http://localhost:8000/ and play around\n\n#### Enjoy! \nAnd lastly, fix all the bugs, add cool new features and take over the world :)\n\n### Mozilla Open Badge Integration and Development\n\nDocumentation:\n* Badges/Technology https://wiki.mozilla.org/Badges/Technology\n* Assertions https://github.com/mozilla/openbadges/wiki/Assertions\n\nSetup Development Environment:\n1. Prepare validator\n  * user online http://validator.openbadges.org/\n  * or install validator locally\n    * $ install nodejs and npm\n    * $ git clone https://github.com/mozilla/openbadges-validator-service.git\n    * $ cd openbadges-validator-service\n    * $ npm install\n    * $ node app.js\n    * point your browser to http://localhost:8888\n1. Amend settings_local.py\n   * set OPEN_BADGES_PUBLIC_URL to your development box (and later to production public url)\n   * if using local validator, OPEN_BADGES_PUBLIC_URL='http://localhost:8000'\n   * otherwise play with ssh remote tunneling and set OPEN_BADGES_PUBLIC_URL accordingly\n1. Open Badges urls:\n  * OPEN_BADGES_PUBLIC_URL/openbadges/assertions/\u003cuid\u003e\n  * OPEN_BADGES_PUBLIC_URL/openbadges/badge/\u003cbadge_id\u003e\n  * OPEN_BADGES_PUBLIC_URL/openbadges/organisation\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp2pu%2Fbadges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp2pu%2Fbadges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp2pu%2Fbadges/lists"}