Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 997 Bytes

README.md

File metadata and controls

31 lines (18 loc) · 997 Bytes

English Premier League

Heroku

This project is intended to show the usage of next js with SSR and graphql. The web app contains 2 pages, one allows to seach and filter for players while the other shows the teams in premier league based on live data from APIfootball.

Table of contents

Installation

  1. $ git clone https://github.com/yasharzolmajdi/english-premier-league.git
  2. $ cd english-premier-league
  3. $ yarn install

Usage

APIFOOTBALL_KEY environment variable needs to be set, you can get the API key from APIfootball.

Production

  1. $ yarn build
  2. $ yarn start

Development

  1. $ yarn dev

NOTE: After update of the GraphQL queries you will have to run $ yarn apollo to update all generated typescript interfaces.