Go to file
2018-09-21 22:32:56 -07:00
data Remove $BASE_URL_PLACEHOLDER 2018-09-21 22:32:56 -07:00
functions Easy push button deploy (#3) 2018-09-15 03:57:25 -07:00
updater cmd.bash hotfix 2018-09-19 22:08:08 -07:00
.gitignore Update updater to use ditto v0.5.0 2018-09-19 00:48:13 -07:00
build.sh Easy push button deploy (#3) 2018-09-15 03:57:25 -07:00
netlify.toml Add CORS header to netlify.toml 2018-09-21 13:55:28 -04:00
package.json bring in the deployment files 2018-09-15 00:32:47 -07:00
README.md Easy push button deploy (#3) 2018-09-15 03:57:25 -07:00
requirements.txt Ditto v0.6.0 2018-09-21 21:37:42 -07:00
runtime.txt Update build script 2018-09-15 00:57:01 -07:00
yarn.lock bring in the deployment files 2018-09-15 00:32:47 -07:00

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.

Deploy to Netlify

# 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.