gatsby-source-badgr
v1.0.0
Published
A Gatsby source plugin for getting digital badges
Readme
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-filesystemgatsby-plugin-imageis recommended for loading images efficientlygatsby-source-filesystemis 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: '[email protected]',
password: process.env.BADGR_PASSWORD
}
}
]
}Endpoints
| Region | Endpoint | | -------------------- | ------------------------ | | 🇺🇸 United States | https://api.badgr.io | | 🇪🇺 Europe | https://api.eu.badgr.io | | 🇨🇦 Canada | https://api.ca.badgr.io | | 🇦🇺 Australia | https://api.au.badgr.io |
