https://github.com/lucastaliberti/openligadb
API wrapper for the OpenLigaDB API.
https://github.com/lucastaliberti/openligadb
apollo-client graphql graphql-php openligadb react
Last synced: about 2 months ago
JSON representation
API wrapper for the OpenLigaDB API.
- Host: GitHub
- URL: https://github.com/lucastaliberti/openligadb
- Owner: lucastaliberti
- Created: 2017-09-28T19:22:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T23:23:52.000Z (over 8 years ago)
- Last Synced: 2025-09-06T08:52:39.397Z (10 months ago)
- Topics: apollo-client, graphql, graphql-php, openligadb, react
- Language: PHP
- Homepage:
- Size: 1.27 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bundesliga API
---
This is a small app API wrapper for the [OpenLigaDB API](https://www.openligadb.de/).
At first you will find information about:
- Next upcoming matches (following Gameday)
- All matches of the actual season
- Win/Loss Ratio of the actual season of each team
## Solution workflow
The main idea is to wrap the original OpenLigaDB API with a graphQL schema to make the frontend queries easy and declarative.
I choose the JSON format for convenience and better knowledge of the format.
On the frontend there's a React app with the Apollo client querying the graphQL backend.
## To run
1. First install all dependencies
```bash
$ composer install
$ npm install
```
2. Compile the frontend assets
```bash
$ npm run prod
```
3. Run the php server
```bash
$ php artisan serve
```
>make sure you have PHP 7 at your PATH
4. browse localhost:8000 and enjoy!