Skip to content

Ri1tik/forecast-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌦️ Weather Forecast App

Designed with production-grade patterns: debouncing, secure API access, and CI/CD automation.

Weather Search & Loading Weather Result

A clean, responsive weather application built using HTML, CSS, and JavaScript, with a serverless backend powered by Netlify Functions.
The app fetches real-time weather data from the OpenWeather API and emphasizes smooth UX through loading states, debounced search, and subtle error animations.


πŸš€ Live Demo

πŸ‘‰ https://forecast-lite.netlify.app/


πŸ—οΈ Project Structure

weather-app/
β”‚
β”œβ”€β”€ frontend/
β”‚ β”œβ”€β”€ index.html
β”‚ β”œβ”€β”€ style.css
β”‚ └── script.js
β”‚
β”œβ”€β”€ netlify/
β”‚ └── functions/
β”‚   └── weather.js
β”‚
β”œβ”€β”€ README.md
└── netlify.toml

πŸ› οΈ Tech Stack

Frontend

  • HTML5
  • CSS3 (Responsive layout)
  • Vanilla JavaScript

Backend

  • Netlify Serverless Functions
  • OpenWeather API

Deployment & CI/CD

  • Netlify
  • GitHub

🧠 How It Works

  • User submits a city query from the frontend
  • Request is routed to a Netlify Serverless Function
  • Serverless function securely queries the OpenWeather API
  • Validated weather data is returned to the client
  • UI updates dynamically based on the response
  • Invalid inputs trigger a non-blocking shake animation for feedback

🧠 Architecture Overview

Browser (Frontend)
|
| fetch()
↓
Netlify Function (Backend)
|
| OpenWeather API
↓
Weather Data Response

✨ Features

  • πŸ” Search weather by city
  • ⏳ Loading spinner during data fetch
  • 🧠 Debounced search to reduce unnecessary API calls
  • πŸ“¦ Serverless backend with secure API key handling
  • πŸ“± Fully responsive design
  • ❌ Shake animation on invalid input (non-intrusive UX)
  • ⚑ Automatic deployment on Git push (CI/CD)

πŸ‘¨β€πŸ’» Author

Developed by : Ritik R. Yadav  
E-mail       : ritik.r.yadav0001@gmail.com  
Learning by building, breaking, and fixing ⚑

⭐ If you like this project, give it a star!

About

forecast-lite 🌦️ β€” real-time weather, smooth UX, zero hassle! Made with ❀️ using HTML, CSS, JS, and serverless backend.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors