[ ] If that comes back successful then I’ll create a var called findingSpecies that
will contain the data that will pass through if the response is successful.
[ ] Const species will be the array that will hold all the cards.
[ ] Use object.keys to grab the data from the array, loop through the objects
and pass the firebase id through and push the array values to the empty
array called species.
[ ] Export getSpecies
speciesCard Component
[ ] Make folder called speciesCard in the components folder, with speciesCard.js and scss file
[ ] Create function called makeSpeciesCard that will contain a domString for the
species card based off of the object key value pairs declared in the
species Json file.
[ ] Use bootstrap card and positioning elements
[ ] Use bootstrap links for the delete and edit buttons (but they will be links,
not buttons)
[ ] Export makeSpeciesCard
speciesBoard Component
[ ] Make SpeciesBoard folder in the components folder, with js and scss file
[ ] Import firebase/app and auth
[ ] Import utils
[ ] Import speciesData and speciesCard
[ ] Create a function called buildSpecies and pass in the id. Grab the data from
speciesData and attached the getSpecies function as a method.
[ ] Create a domString with a div id of speciesSection, d-flex, flex-wrap.
[ ] Loop over boards and grab speciesCard data and print its content to the div
User Story
As a user, I should be able to see all the Species when I arrive at a destination.
AC
WHEN the user is logged in they will be on the homepage. When the user clicks on the species card then they will be able to see all of the species.
AND when the user clicks on the species a card will appear that gives a description of that species.
THEN the user can click on a button to go back to the species page.
DEV Notes
Wireframe: see wireframe below for the way this page and its cards should appear
Creating JSON data
Create Div
const baseUrl = apiKeys.firebaseKeys.databaseURL
const speciesDiv = $('#speciesBoards');