1.0.0 β€’ Published 3 years ago

gatsby-source-badgr v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

gatsby-source-badgr

A Gatsby source plugin for Badgr badges.

This plugin is great for a personal portfolio websites where you want to show off certification badges that you have earned.

Installation

yarn add gatsby-source-badgr gatsby-plugin-image gatsby-source-filesystem
  • gatsby-plugin-image is recommended for loading images efficiently
  • gatsby-source-filesystem is needed for using badge images

Configuration

You should pass in your password as an environment variable to prevent accidentally committing it to source control.

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-badgr',
      options: {
        endpoint: 'https://api.eu.badgr.io',
        username: 'john.doe@example.com',
        password: process.env.BADGR_PASSWORD
      }
    }
  ]
}

Endpoints

RegionEndpoint
πŸ‡ΊπŸ‡Έ United Stateshttps://api.badgr.io
πŸ‡ͺπŸ‡Ί Europehttps://api.eu.badgr.io
πŸ‡¨πŸ‡¦ Canadahttps://api.ca.badgr.io
πŸ‡¦πŸ‡Ί Australiahttps://api.au.badgr.io