CST336 -Week 6
- YZ

- Dec 9, 2020
- 1 min read
Updated: Dec 10, 2020
This week we learned about using databases in our applications. First, we read Using MySQL with Node.js, which introduced us to the topic. We also read about callbacks and what they are, as well as why the use of the async and await keywords are superior to promises. Before we started the lab, we had to install JawsDB in Heroku. The professor provided a tutorial that was very clear and I was able to set it up easily and successfully make the SQL connection.
Lab 5 instructed us to create a website in which the user can search for photos by keyword. Once the photos connected to that particular keyword are displayed users can click on the "favorite" icon and then later go the the "see favorites" page and view the favorite pictures from each keyword. This involved creating a table of favorites with the id, keyword, and URL of each photo. This complex lab combined a lot of different skills like storing items in databases, API calls, and more. The instructions were very clear and explained each step so that we understood what and why we were writing each line of code. Here is the link to my site: https://yoza20-lab5.herokuapp.com/









Comments