Emoji Oracle is a responsive web application that fetches and displays data from a public emoji and a public quote API. The main goal was to learn how to work with real-time data, handle asynchronous JavaScript, and design a clean, user-friendly interface. The application allows users to receive a random “oracle” message, triggered by a button click, and presents the result with consistent styling and a fortune teller inspired theme.
Nov 2025
2 weeks
Frontend:
The project is built with semantic HTML and CSS, using a mobile-first approach to ensure responsiveness across devices. CSS variables are used for colors and spacing, making it easy to maintain a consistent design and quickly adjust the theme.
JacvaScript:
All data fetching is handled with the Fetch API and asynchronous functions. Events, such as button clicks, trigger API requests and update the UI dynamically. Special care was taken to filter out duplicate or irrelevant emojis, ensuring each oracle message feels unique and relevant.
API Integration:
I started with a public quote API, which worked without issues right away. Then I selected a public emoji API that allowed for simple, CORS-friendly requests. I tested the API's early to avoid integration issues and structured the code to easily swap endpoints if needed.
UI/UX:
One challenge was ensuring a smooth user experience while data was loading. The UI “jumps” as new data arrived, and if I had more time I would have wanted to find a solution to that, like a loader, and some smooth transitions to create a more polished feel.
Code repetitions:
One part of the feedback I received was that some parts of the code, especially around category creation and DOM updates, became repetitive. In hindsight, I would refactor these sections to follow the DRY principle for better maintainability.