Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trevorblades/hltv-graphql
🐔 A GraphQL API for HLTV.org data
https://github.com/trevorblades/hltv-graphql
apollo-server counter-strike-global-offensive graphql hltv
Last synced: 16 days ago
JSON representation
🐔 A GraphQL API for HLTV.org data
- Host: GitHub
- URL: https://github.com/trevorblades/hltv-graphql
- Owner: trevorblades
- Created: 2019-02-23T04:37:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T13:32:08.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T13:14:25.943Z (about 1 month ago)
- Topics: apollo-server, counter-strike-global-offensive, graphql, hltv
- Language: JavaScript
- Homepage:
- Size: 735 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HLTV.org GraphQL API
This API wraps the unofficial [`hltv`](https://github.com/gigobyte/HLTV) Node client.
## Running locally
Clone this repo and `cd` into it. You're going to need to create a `.env` file that exposes a `PORT` variable. It will look like this:
```bash
# specify the port you want the server to listen to
PORT=4000
```Next, install the project dependencies and start up the dev server. If everything works, you'll see a message in your terminal with the URL that the API is available at. 🚀
```bash
$ npm install
$ npm start
```If you access the provided URL in a browser ([http://localhost:4000](http://localhost:4000) in this example), you'll get a GraphQL playground to read over the API schema and test out some queries.