GithubHelp home page GithubHelp logo

arthurbarroso / hearthstone-cards-relay-api Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 1.04 MB

Relay compatible GraphQL Hearthstone cards API (and hearthstone's card api scraper) ๐Ÿง™โ€โ™‚๏ธ

JavaScript 8.23% TypeScript 91.77%
relay relay-modern graphql graphql-server hearthstone hearthstone-cards hearthstone-api scraper mongodb mongoose typescript

hearthstone-cards-relay-api's Introduction

Relay compatible GraphQL Hearthstone cards API.

And a card scraper utility.

Packages

This repository contains two packages:

  • The scraper which is responsible for retrieving card data from blizzard's api and creating mongo documents from it.
  • The server which uses the data createad from the scraper to power up a Relay compatible GraphQL server.

Environment setup

  • Head to blizzard and generate yourself an access token. Your code will be seen like below after clicking the "Try it" button on the "cards search" section and following it's instructions. access_token.

  • Get your mongodb server up and running. This can be done using docker, if you'd like to: docker run --name hearthstone -p 27017:27017 -d -t mongo.

  • Fill in the necessary information on the .env files. There is one for each package (one for the scraper and one for the server).

Usage

After doing the setup above all you'll need to do to get your server up and running is run two commands on the root of the repository:

  • yarn scraper:seed to run the scraper and get the cards to your mongo database.
  • yarn dev:server to run nodemon on your server and start playing with it.

Need help?

Feel free to open an issue or shoot me a personal message at arthur otus#7121 on discord.

hearthstone-cards-relay-api's People

Contributors

arthurbarroso avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.