Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/agovah/React-Football
Browse files Browse the repository at this point in the history
  • Loading branch information
agovah committed Oct 29, 2019
2 parents 0443c8f + a674777 commit 4fb1330
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Usage

```
$ https://github.com/agovah/React-Football.git
$ cd react React-Football-master
$ npm install
$ npm start
```
## API key

1. Get API key @ https://www.football-data.org/
2. Insert your API key to *app.js* file :
```
const Token = 'INSERT_TOKEN_HERE'
```

## Available Scripts

In the project directory, you can run:
Expand Down
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class App extends Component {
};

fetchData(id, name) {
const Token = '59286dba86e94c298a8a8e234c7a3a1d',
const Token = 'INSERT_TOKEN_HERE',
URL = 'https://api.football-data.org/v2/competitions/' + id + '/standings';

fetch(URL, { headers: { 'X-Auth-Token': Token } })
Expand Down

0 comments on commit 4fb1330

Please sign in to comment.