Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d-sanderson/gatsby-source-pokemons
gatsby source plugin
https://github.com/d-sanderson/gatsby-source-pokemons
gatsby gatsby-plugin gatsby-source-plugin pokemon pokemons
Last synced: about 2 months ago
JSON representation
gatsby source plugin
- Host: GitHub
- URL: https://github.com/d-sanderson/gatsby-source-pokemons
- Owner: d-sanderson
- License: mit
- Created: 2020-05-02T18:48:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-24T19:28:18.000Z (over 4 years ago)
- Last Synced: 2024-10-22T02:06:50.494Z (2 months ago)
- Topics: gatsby, gatsby-plugin, gatsby-source-plugin, pokemon, pokemons
- Language: JavaScript
- Homepage:
- Size: 591 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Gatsby Source Pokemons PluginSource plugin for pulling pokemon data into Gatsby.
## How to install
### Within the root of your Gatsby Project:
1. `npm install gatsby-source-pokemons`
2. add `gatsby-source-pokemons` to your plugin array in `gatsby-config.js`
3. Navigate to `localhost:8000/__graphql` to view `allPokemons` query type.
## Examples of usage
see [example repo](https://github.com/dsanderson90/pokemon-source-example)
```{
allPokemons {
nodes {
name
id
total
hp
sp_def
sp_atk
defense
attack
type
speed
national_number
natl_num(as int)
sprites {
normal
large (not available on pokemon after national_number 721)
}
}
}
}
```