Add dependency for API-calls
This commit adds the axios-dependency, which is used to call the API-functions. Moreover the README.md has been updated accordingly.
This commit is contained in:
parent
6207049fa1
commit
27e118041e
10
README.md
10
README.md
|
|
@ -12,10 +12,16 @@ First of course you'll need to clone this repository:
|
||||||
$ git clone https://github.com/turniere/turniere-frontend.git
|
$ git clone https://github.com/turniere/turniere-frontend.git
|
||||||
```
|
```
|
||||||
|
|
||||||
Afterwards you'll have to navigate into the created folder and install React, Next, CSS-support for Next aswell as Express with your pacakge manager:
|
Afterwards you'll have to navigate into the created folder and install several libraries using following command:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ yarn add react react-dom next express @zeit/next-css
|
$ yarn add react react-dom reactstrap next express @zeit/next-css axios
|
||||||
|
```
|
||||||
|
|
||||||
|
Alternatively you can simply use our dependencies file:
|
||||||
|
|
||||||
|
```
|
||||||
|
yarn install
|
||||||
```
|
```
|
||||||
|
|
||||||
Afterwards you may simply run the developer version of the project:
|
Afterwards you may simply run the developer version of the project:
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@zeit/next-css": "^1.0.1",
|
"@zeit/next-css": "^1.0.1",
|
||||||
|
"axios": "^0.18.0",
|
||||||
"bootstrap": "^4.1.3",
|
"bootstrap": "^4.1.3",
|
||||||
"express": "^4.16.4",
|
"express": "^4.16.4",
|
||||||
"next": "^7.0.2",
|
"next": "^7.0.2",
|
||||||
|
|
|
||||||
22
yarn.lock
22
yarn.lock
|
|
@ -1101,6 +1101,14 @@ autodll-webpack-plugin@0.4.2:
|
||||||
webpack-merge "^4.1.0"
|
webpack-merge "^4.1.0"
|
||||||
webpack-sources "^1.0.1"
|
webpack-sources "^1.0.1"
|
||||||
|
|
||||||
|
axios@^0.18.0:
|
||||||
|
version "0.18.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/axios/-/axios-0.18.0.tgz#32d53e4851efdc0a11993b6cd000789d70c05102"
|
||||||
|
integrity sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=
|
||||||
|
dependencies:
|
||||||
|
follow-redirects "^1.3.0"
|
||||||
|
is-buffer "^1.1.5"
|
||||||
|
|
||||||
babel-code-frame@^6.26.0:
|
babel-code-frame@^6.26.0:
|
||||||
version "6.26.0"
|
version "6.26.0"
|
||||||
resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
|
resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
|
||||||
|
|
@ -1766,6 +1774,13 @@ debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3:
|
||||||
dependencies:
|
dependencies:
|
||||||
ms "2.0.0"
|
ms "2.0.0"
|
||||||
|
|
||||||
|
debug@=3.1.0:
|
||||||
|
version "3.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
|
||||||
|
integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==
|
||||||
|
dependencies:
|
||||||
|
ms "2.0.0"
|
||||||
|
|
||||||
debug@^3.1.0:
|
debug@^3.1.0:
|
||||||
version "3.2.6"
|
version "3.2.6"
|
||||||
resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b"
|
resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b"
|
||||||
|
|
@ -2237,6 +2252,13 @@ flush-write-stream@^1.0.0:
|
||||||
inherits "^2.0.1"
|
inherits "^2.0.1"
|
||||||
readable-stream "^2.0.4"
|
readable-stream "^2.0.4"
|
||||||
|
|
||||||
|
follow-redirects@^1.3.0:
|
||||||
|
version "1.5.9"
|
||||||
|
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.9.tgz#c9ed9d748b814a39535716e531b9196a845d89c6"
|
||||||
|
integrity sha512-Bh65EZI/RU8nx0wbYF9shkFZlqLP+6WT/5FnA3cE/djNSuKNHJEinGGZgu/cQEkeeb2GdFOgenAmn8qaqYke2w==
|
||||||
|
dependencies:
|
||||||
|
debug "=3.1.0"
|
||||||
|
|
||||||
for-in@^1.0.2:
|
for-in@^1.0.2:
|
||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
|
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue