Giter Club home page Giter Club logo

hearthstone-deck-builder's People

Contributors

codybarr avatar

Watchers

 avatar

hearthstone-deck-builder's Issues

As a returning user, I want create new decks (2h)

  • create a new POST /decks endpoint
    • Should only permit a deck to be submitted that belongs to the currently logged in user.
  • this will have to chain a POST to a new /deck-cards endpoint (that will add the cards belonging to the deck to the deck-cards table in the database).

Estimate: 2h

AA New User, I want to see individual decks (2h)

  • create decks table / model
  • create a table for cards referenced in decks (which will contain a deck_reference, card_reference, and quantity)
  • create GET endpoints for decks (/decks and /decks/:deck_id)

Estimate: 2h

As a returning user, I want to upvote/downvote existing decks (1h)

  • create a PUT? endpoint at /decks/:deck_id/vote
    • payload will be either 1, 0, or -1 (1 upvotes, 0 removes vote, and -1 downvotes)

Note: I don't really know how this works out to the HTTP verb since you don't really know, or I don't think you should have to know what the current state of the DB is. The server should be able to respond accordingly.

Estimate: 1h

As a returning user, I want to see my existing decks (1h)

  • add another GET endpoint to the /decks router for fetching decks belonging to the currently logged in user (maybe /decks/mine) - would pass in jwt in auth header then fetch a list of decks belonging to the decrypted user.

Note: Or maybe put the endpoint in the users service (eg. GET /users/:username/decks) (then we could also do like favorited cards etc. -> /users/:username/favorite-cards, etc.)

I think this second approach makes more sense. Then anybody would be able to visit /users/:username and view their decks, profile info, etc.

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.