The goal of this class project was to research a cheap or free Web Application program Interface (API) and build a functional web application that demonstrates the use of the API. I found an Advice API endpoint that was free and decided to develop a simple web application that uses the $.getJSON() method to retrieve Advice formatted in JSON for the user after they enter their birthday on the web page. The user can either enter their date of birth manually or select it from the calendar by using the arrows in the date input box. In this project I refreshed my memory on the basics of html like
tags , <p> </p>tags <h1> </h1> tags, and forms. I also utilized jQuery methods like .html(), .next() , .val() and conditional if statements to populate error messages in the span tag next to my input date box.
My web application is a very fun and interactive way to get customers to voluntarily give out their birthday information. Most humans are on a quest for daily advice. Thus, they will be curious to know about the advice the web app has for them. Online retailers can then draw meaningful insights from the birthday data to know how to better market their merchandise to the different age demographics they may have.
Thank you for viewing my class project! Please click the link below to view my web application.