Giter Site home page Giter Site logo

hsdecker's Introduction

HSDecker

A simple tool to view cards and decks for the digital collectible card game Hearthstone.

Features

  • create and show random deck
  • show a deck by a given deck code
  • show cards
  • user can login and save their card collection

Screenshot

Why

  • since there is no way to manually maintain my card collection on HSReplay and there is no way of syncing on iOS, I wanted to have a tool to check missing cards for a given deck code
  • have a look into Svelte (in combination with Sapper for server side rendering)
  • have a look into Google Firebase

Prerequirements

  • git
  • node.js
  • yarn
  • a firebase project

Setup

  • clone the repo to you local machine (git clone --recursive url-to-repository)
  • go to the directory
  • install node modules (just run yarn)
  • copy firebase.config.js.example to firebase.config.js and enter your firebase project credentials in the new file
  • update submodules (git submodule update --recursive) (in case you didn't cloned with --recusinve)

Setup Firebase

  • the app needs a collection named userCards
  • rule for this collection:
    rules_version = '2';
    service cloud.firestore {
      match /databases/{database}/documents {
        match /userCards/{userId} {
          allow read, write: if request.auth.uid == userId;
        }
      }
    }
    
    this allows users to just access their own collection, not other users collections

Run

yarn dev

Then open up localhost:3000 and start clicking around.

Tasks

  • update tiles
    • git submodule update --recursive
  • update card databse
    • yarn download-card-db

hsdecker's People

Contributors

dependabot[bot] avatar emrox avatar

Stargazers

 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.