Badger is a gamification platform initially developed as an internal project by Akeneo. Badger is still under development, but is working! If you want to try the project, please install the last release.
Badger is based on the great Symfony framework. If you encounter some installation errors, please have a look on the Symfony installation documentation. If you still have some troubles, feel free to open a GitHub issue.
composer install
mysql -u root -p
CREATE DATABASE badger;
GRANT ALL PRIVILEGES ON badger.* TO badger_user@localhost IDENTIFIED BY 'badger_password';
EXIT
php bin/console doctrine:schema:update --force
npm install # Install frontend dependencies, like Bootstrap
php bin/console assets:install # Move bundle assets to web/ directory
nodejs node_modules/gulp/bin/gulp.js less # Compile bundle .less files to .css
nodejs node_modules/gulp/bin/gulp.js install # Move downloaded assets to web/ directory
Once Badger has been installed, you'll have some small things to configure in order to use the application.
http://badger.example.com/
)# ./app/config/parameters.yml
parameters:
github_client_id: 123456789
github_client_secret: abcdef123456789
http://badger.example.com/login/check-google
) as a valid redirect domain# ./app/config/parameters.yml
parameters:
google_client_id: abcdefg123456789.apps.googleusercontent.com
google_client_secret: 123456789abcd
Bagder is working with Elasticsearch in order to ease the search in the application.
php bin/console fos:elastica:populate
Note that every new users will be automatically indexed by Elasticsearch, you won't need to re-run this command again.
To manage Badger, you'll need one or several administrators. To promote a user, use this command:
php bin/console fos:user:promote <username> ROLE_ADMIN
Note that the promoted user will need to logout then login again to have full power :metal:
./bin/simple-phpunit -c app
./bin/simple-phpunit -c app --coverage-html=web/phpunit-coverage
Badger is licensed under the Open Software License v. 3.0 (OSL-3.0)