mirror of
https://github.com/PokeAPI/api-data.git
synced 2024-11-22 15:42:30 +01:00
Mirror of https://github.com/PokeAPI/api-data
data | ||
functions | ||
updater | ||
.gitignore | ||
build.sh | ||
netlify.toml | ||
package.json | ||
README.md | ||
requirements.txt | ||
runtime.txt | ||
yarn.lock |
PokeAPI Data
This repository contains:
- data/api: a static copy of the JSON data generated with the above script
- data/schema: a static copy of the PokeAPI schema generated from the above data
- updater: a Ditto based bot that runs in docker and can update the data stored in this repo
- Deployment configs to deploy an instance of the API to Netlify
Usage
If you'd like to use the JSON for your own purposes, you can apply your own base URL using Ditto:
ditto transform --base-url='https://pokeapi.co'
If you're deploying to Netlify, use the button below and remember to set the BASE_URL
environment variable.
# example
BASE_URL='http://pokeapi.co'
Updater Bot
You can manually update the data if necessary. See the updater bot. You can run the bot in docker, or read and adapt its update script yourself.