
Discovery & Architecture
Reviewed the Scrimba AI Engineer Path requirements, Figma design, and example flows to define the scope for PollyGlot. Identified the core user journey (input → language selection → translation → feedback) and mapped a simple architecture using Vite on the front end, Vercel Functions for the API layer, and OpenAI for translation.

Front-End Implementation
Implemented the UI with semantic HTML and vanilla CSS to keep the markup accessible and predictable. Built responsive layout and state-driven styles for idle, loading, error, and success states. Used vanilla JavaScript to wire up form handling, language selection, and DOM updates without any framework abstractions.

Serverless API & OpenAI Integration
Created a Vercel serverless function in Node.js to handle translation requests. The function validates input, forwards prompts to the OpenAI API, and returns structured JSON back to the client. Environment variables keep API keys secure across local and production environments, with basic rate limiting to protect quotas.

Debugging, Hardening & Deployment
Debugged 404 routing issues, 500 errors from misconfigured environment variables, and edge cases in input handling. Added clearer error messaging and guardrails around API usage. Deployed to Vercel and validated that the full stack — UI, serverless functions, and OpenAI integration — behaves reliably in a real-world environment.




