Skip to main content

Weather App

Weather App is a minimal, no-build-step frontend application built with HTML, CSS, and JavaScript. It fetches live weather conditions from the OpenWeatherMap API and presents them in a clean, neumorphic dark card interface.

Quickstart

Get the app running in your browser in minutes

Setup guide

Step-by-step instructions to clone, configure, and deploy

API key guide

Get your free OpenWeatherMap API key

Customization

Change the city, units, and visual style

What it does

When you open the app, it immediately calls the OpenWeatherMap Current Weather API for a configured city and displays:
  • Location name — the city returned by the API
  • Weather description — e.g., “light rain”, “clear sky”
  • Temperature — converted from Kelvin to Celsius
  • Weather icon — condition icon from OpenWeatherMap
  • Humidity — percentage relative humidity
  • Wind speed — in meters per second
A refresh button at the bottom of the card re-fetches the latest data without a full page reload.

Tech stack

LayerTechnology
MarkupHTML5
StylingCSS3, Bootstrap 5.3, Font Awesome 4.7
LogicVanilla JavaScript (Fetch API)
DataOpenWeatherMap Current Weather API
FontPoppins (Google Fonts)

Key features

Uses the browser’s native fetch() API to call the OpenWeatherMap /data/2.5/weather endpoint on every page load. No server required — everything runs client-side.
The weather card uses a dark #343434 background with layered box-shadow values to create a soft neumorphic (new skeuomorphism) effect, giving depth without heavy graphics.
No Node.js, no bundler, no framework. Open index.html directly in a browser or deploy the three files to any static host.
The card uses viewport-relative widths (80vw, max-width: 30rem) and flexbox centering so it looks good on any screen size.

Build docs developers (and LLMs) love