Skip to content

skrShailesh/MyWeatherApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyWeatherApp

Welcome to the Weather Web App

This Beautiful Weather Web App allows users to check the current weather conditions by entering the city name. It leverages the OpenWeatherMap API to fetch real-time weather data.

💻Technologies Used

  • HTML
  • CSS
  • JavaScript
  • Java
  • Servlet
  • JSP
  • OpenWeather API

    How to Use

  • Enter the desired city name in the provided input field.
  • Click the search button.
  • View detailed weather information, including temperature, humidity, wind speed, and weather condition.

    Opening Page

    Screenshot 2023-12-08 213913 (2)

    Result page

    Screenshot 2023-12-08 214210

    Code Overview

    HTML and CSS

  • The front-end of the application is built using HTML and styled with CSS.
  • The design is simple and user-friendly, featuring a search input and displaying weather details.

    Java Servlet (MyServlet)

  • The MyServlet class handles the server-side logic.
  • It makes an HTTP request to the OpenWeatherMap API to get weather data based on the provided city.
  • The fetched data is parsed using the Gson library.
  • The servlet then forwards the data to the index.jsp page for rendering.

    JSP (index.jsp)

  • The index.jsp page receives the weather data and dynamically displays it.
  • It utilizes JSTL (JavaServer Pages Standard Tag Library) to embed Java code within HTML.

    CSS (style.css)

  • The CSS file provides styling for the web application, creating an attractive and responsive user interface.

    How to Run

  • Clone this repository.
  • Open the project in your preferred Java IDE.
  • Run the application on a servlet container (e.g., Apache Tomcat).
  • Enjoy checking the weather with MyWeatherApp!
  • About

    A Weather web App using HTML, CSS, JS, Java, Servlet, JSP & OpenWeather API

    Topics

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published