Skip to content

lastmaj/graphql-fpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-fpl

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

Collaborations

A special thank you to @tanayv for his collaboration to fix errors related to axios. Collaborations are happily welcomed.

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.