Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oorestisime/gatsby-source-marvel
Gatsby source plugin to pull data from Marvel API
https://github.com/oorestisime/gatsby-source-marvel
gatsby gatsby-plugin gatsby-source marvel marvel-api
Last synced: 28 days ago
JSON representation
Gatsby source plugin to pull data from Marvel API
- Host: GitHub
- URL: https://github.com/oorestisime/gatsby-source-marvel
- Owner: oorestisime
- License: mit
- Created: 2018-11-16T01:40:56.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-18T20:24:30.000Z (about 6 years ago)
- Last Synced: 2024-11-08T22:57:59.007Z (about 1 month ago)
- Topics: gatsby, gatsby-plugin, gatsby-source, marvel, marvel-api
- Language: JavaScript
- Homepage: https://gatsby-source-marvel.netlify.com/
- Size: 184 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gatsby source marvel example [![npm version](https://badge.fury.io/js/gatsby-source-marvel.svg)](https://badge.fury.io/js/gatsby-source-marvel)
## Install
To install the source plugin `yarn add gatsby-source-marvel`.
## Configure
* You first need to create a Marvel developer account and retrieve you Key pair to use the plugin. http://developer.marvel.com/ has all the info you need.
* Make sure to have a look at these sections of their documentation https://developer.marvel.com/documentation/entity_types (to understand the different entities and their fields) https://developer.marvel.com/docs (to find out about their filters) and if you are using their images https://developer.marvel.com/documentation/images
* Here is a configuration example to get the available information for Thor:
```
{
resolve: "gatsby-source-marvel",
options: {
publicKey: --,
privateKey: --,
queries: [
{
entity: 'characters',
entityFilter: {
name: 'Thor',
},
},
],
}
},
```* Check the example website https://gatsby-source-marvel.netlify.com/ for more examples, how to query data and happy marvel hacking