Skip to content

zaephyr/fpl_app

Repository files navigation


App for Fantasy Premier League

Small app that uses Fantasy Premier League API.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

About The Project

App uses certain Fantasy Premier League API endpoints to get some additional data, like showing choosen captains by FPL managers and ownership of footballers in specific league and a new version of the game.

Endpoints used:

https://fantasy.premierleague.com/api/bootstrap-static/

On this endpoint you can get generic information:

  • A summery of all 38 gameweeks
  • Basic info on all 20 Premier League teams
  • Basic info on all Premier League players

https://fantasy.premierleague.com/api/entry/{manager-id}/event/{GW}/picks/

On this endpoint you can get picks from certain FPL manager for certain gameweek. Replace {manager-id} with, well, FPL player ID. For example here's an ID of one of the most famous FPL managers, a chess champ, Magnus Carlsen - 76862. In place of {GW} choose a number between 1 and 38, would recommend earlier numbers as later gameweek might not happen yet.

https://fantasy.premierleague.com/api/leagues-classic/{league-id}/standings/

FPL league's standings and it's overall info are avaible on this endpoint. Replace {league-id} with specific league's ID. For example, use an ID of one of the feirciest leagues - #Elite64 - 21004

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
    npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/zaephyr/fpl_app.git
  2. Install NPM packages
    npm install

Build Setup

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate

For detailed explanation on how things work, check out Nuxt.js docs.

Usage

For quick look of the app, testing account was created:

On left side is a menu with Username (tester), standard league (#Elite64) and Free Hit League (test-league) already added. Creating your own Free Hit League via app is currently not possible, to do so you you'll need to contact the author.

For Free Hit League, official team rules, exept there are 11 players to be picked instead of 15 (no bench) and starting bank is 83m instead of 100m.

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Project Link: https://github.com/zaephyr/fpl_app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published