tanayv / graphql-fpl

A GraphQL wrapper for the Fantasy Premier League REST API, using node.js and graphql-yoga.

Home Page:http://graphql-fpl.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fpl-graphql

A GraphQL wrapper for the Fantasy Premier League API, using node and graphql-yoga. Demo

Important notice

As of September 2020, fpl-graphql needs update to reflect possible changes in the premier league API. Contributions are welcome. Right now I am a little busy so it would take some time for fpl-graphql to work again. Starting from 20/21 season, request-promise is used. (axios, fetch and other alternatives did not seem to work, which is very odd.)

FPL Rest API endpoints

Usage

  1. Download or clone this repository
git clone https://github.com/lastmaj/fpl-graphql.git
  1. Move to the project directory and install dependencies
cd fpl-graphql
npm install
  1. Start the server
npm start

The server will run at http://localhost:4000 with a graphql playground (browse docs and schema to know more about queries)

Example

2019-09-05 19_46_36-Playground - http___localhost_4000_ Aguero's live stats for the 4the gameweek. You didn't captain him did you ?

Feel free to fork 🍴

If it helps you build something awesome, let me know. Contributions are happily welcome.

About

A GraphQL wrapper for the Fantasy Premier League REST API, using node.js and graphql-yoga.

http://graphql-fpl.herokuapp.com/

License:MIT License


Languages

Language:JavaScript 100.0%