# :fire: Tindog ## For chasing tail ![lady tramp](https://camo.githubusercontent.com/464bfee7b8aad8c4048a65ad82ef8b0fd6e96cf6/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f783238634951536e31395462692f67697068792e676966) --- ## Demo :panda_face: ![](https://media.giphy.com/media/Xbd2bU1E464M0/giphy.gif) --- ## Planning :dog2: Split into several parts: * User stories * Quick mockup of the website * Setting out the file architecture * Figuring out what API we want to use, and testing them out. --- ![](https://i.imgur.com/yjgY5U2.png) --- ![](https://i.imgur.com/kfsTNrm.png) --- #### Design & Color scheme 🐰 ![](https://i.imgur.com/fJgHx65.png) --- ![](https://i.imgur.com/fbPkUFC.png) --- ## Using the API :rabbit: - make sure you're using the right API! - read the documentation and check your code! - feature requests --- ### Difference between SPA , static site and dynamic pages: :hotdog: ![](https://media0.giphy.com/media/xDQ3Oql1BN54c/200w.webp?cid=ecf05e47699cdd24924c17d6c46caf0925512271c5ae5e78&rid=200w.webp) --- #### Dynamic Page :hotdog: ![](https://d33wubrfki0l68.cloudfront.net/c5c7ae8e0297314baf3f756c3c0431091ffce031/03b63/static/c033e51a07c9de50cb6ca3318508d816/4b190/dynamic-website-process.jpg) --- #### Static Page :hotdog: ![](https://d33wubrfki0l68.cloudfront.net/2132ff259279bd4639b30744eb2d20ba32701af3/6cc0a/static/417106cd156ec1273dff591900c255bc/4b190/static-website-process.jpg) --- #### SPA :hotdog: ![](https://d33wubrfki0l68.cloudfront.net/9b499db0a907a81ffa645494ea3d621beb51343d/1a5c6/static/ceeca3aaef9d0ceabc91528088187778/4b190/spa-website-process.jpg) --- ## Learning outcomes --- ### Ina 🐰 ![](https://media.giphy.com/media/ykWRWor0568co/giphy.gif) * Debugging * Refactoring --- ### Lizzy :panda_face: * Understand how to build an SPA * How it differs from building a site with Node JS * Promises * Debugging ![image alt](https://media0.giphy.com/media/l2Sq5ryfwM5tpTLnW/source.gif "title" =300x250) --- ### Jack :dog2: - So many ways to skin a ~~cat~~ ~~dog~~ potato - Abstraction and modularisation - className.toggle() - A little CSS goes a long way --- ### Tom :hotdog: - How the SPA communicates with the browser, and how it deffers from static sites or dynamic pages - debugging - wish did tests at the time of writing the code, it would have prevented endless debugging --- ## What went well 1. `See my doggo` function 🐰 ```Javascript function dogToggle() { const dogs = document.querySelectorAll(".dog__card"); dogs.forEach((dog) => { dog.classList.toggle("dog--hidden"); }); } ``` --- 2. Debugging 3. Working together as a team --- # Any questions? ![image alt](https://media1.tenor.com/images/3d19e6dd3f667929d16c606295787439/tenor.gif?itemid=15868934)
{"metaMigratedAt":"2023-06-15T07:08:57.385Z","metaMigratedFrom":"Content","title":":fire: Tindog","breaks":true,"contributors":"[{\"id\":\"b0c18fac-267d-47b1-9eaf-ccae71a12c3d\",\"add\":470,\"del\":141},{\"id\":\"6898df79-5b31-4c78-acd1-86a97123cdc1\",\"add\":1032,\"del\":163},{\"id\":\"62face64-5436-4acc-9a7e-1c0da8ae85ba\",\"add\":412,\"del\":40},{\"id\":\"89613c1e-a1b5-4e82-9c3e-7813a336c5a6\",\"add\":1226,\"del\":0}]"}
    289 views
   Owned this note