POC - TheJosephChen/Chen-Joseph-webdev GitHub Wiki
Proof of Concept
The proof of concept is currently available at https://chen-joseph-webdev.herokuapp.com/project/
The site currently makes use of two APIs.
The card search API searches for cards based on their name. The API gives two types of responses.
- If the search request only matches one card, the response given is the card details.
- If the search request matches multiple cards, a list of matching cards (up to 10) is given.
In either case, the site will first render the result as a list of links to cards in the search results.
The Deck building API takes a specified code generated in the game this site is based on and returns a list of cards as its response. The site will render the list directly on the page. Each card on the list is a link to its details page, similar to clicking on search results in the first API example.
Tests
At the Project root, click "Look up cards". A search bar appears. Test these two searches separately:
-
sister
-
titan
For the first search, you will be given a list of cards whose names match or contain the name searched. For the second search, you will be given a list of one card whose name matches or contains the name searched. In both cases, clicking on the name of a card will redirect you to the details page for that card.
At the Project root, click "Submit a deck". An input bar appears. Enter the following into the input bar:
- MTo0MTgsMzo0MDUsMzo0MTIsMzo0MTcsMzoxMDAyMCwzOjEwOTgxLDM6MTEwODYsMzoxOTA1MiwzOjIwMTEyLDM6MjAxMTYsMzoyMDEyMiwzOjIwMTI1LDM6MjAyMjUsMzoyMDIzNA==
You will be given a list of cards that compose the deck that was searched for. Clicking on the name of a card will redirect you to the details page for that card.