This project is an application that consumes my fun fact api and uses HTML, CSS, and Javascript to display a random fun fact about selected subjects.
Link to project: https://randomfunfacts.netlify.app/
Tech used: HTML, CSS, JavaScript, API
First, I created the actual API that my app needs to consume. I added the necessary data to my server.js file and included a conditional so when each button is pressed, a random fact will be generated. Then I created a simple front-end application that fetches my API data and feeds it through the the user side.
At first, I had a difficult time differentiating the difference between the API and an app to consume the API. After taking some breaks and doing extra reading, I finally connected the pieces.