LekoArts / gatsby-source-potterapi

Source plugin for https://www.potterapi.com/

Home Page:https://gatsby-potterapi.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gatsby-source-potterapi

Source plugin for https://www.potterapi.com/. You can find an example in the example directory.

Install

npm install --save gatsby-source-potterapi

How to use

Prerequisites

Go to potterapi.com and create an account. Afterwards you can see your API key on your profile.

Save the API key in an environment file like:

POTTER_KEY=your-api-key-here

gatsby-config

Add the plugin and define the API key.

module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-potterapi',
      options: {
        key: process.env.POTTER_KEY,
      },
    },
  ],
}

About

Source plugin for https://www.potterapi.com/

https://gatsby-potterapi.netlify.com

License:MIT License


Languages

Language:JavaScript 85.2%Language:CSS 14.8%