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.
I am optimistic that this web application will be extremely beneficial for online clothing websites like H&M and Old Navy. My app can help them learn more about the various age demographics they have in their customer pool to know what their target market is. Furthermore, since most online websites use cookies to store small amounts of data, the website can use cookies to store each customer’s data after the customer accepts cookies for the website. This will enable online stores to save each customers date of birth and use it later for promotional purposes as well. For instance, the data can be used to send out individual promotional discount codes as a birthday gift to their customers. This will lead to an increase in online traffic to their websites throughout the year especially in peak months like August and September that happen to have the highest births.
Thank you for viewing my class project! Please click the link below to view my web application.