Skip to content

dottjt/api-data

 
 

Repository files navigation

ReadeUses

graphql graphql-tag graphql-yoga knex pg pm2 require-graphql-file dotenv

passport passport-facebook-token passport-google-token jsonwebtoken

passport-google-oauth20 passport-discord cookie-parser express-jwt

// reddit-pokeml bucket id 2cf9e1356fe464b063d40d1a

git clone https://github.com/antoniojps/graphql-authentication.git

http://abashev.com/articles/oauth2-refresh-tokens-in-passport-js/ passport-oauth2-refresh

// migrate knex migrate:latest

// run seed knex seed:run

CircleCI

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

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'

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.

About

Static JSON data from the API, plus a JSON Schema

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.4%
  • Shell 2.4%
  • Dockerfile 1.2%