The Weather App is a simple web application that allows users to check the weather of a specific city. It provides real-time weather information and displays the temperature along with a weather status emoji to make it visually appealing and user-friendly.
-
Real-time Weather: The app fetches real-time weather data from the web using the city name provided by the user.
-
Weather Status Emoji: It uses weather status emojis to represent the current weather conditions, making it easy for users to understand the weather at a glance.
-
Responsive Design: The app is designed to be responsive and works well on various devices, including desktops, tablets, and mobile phones.
-
Error Handling: In case the user enters an invalid city name or there is an issue with fetching weather data, the app gracefully handles errors and displays a friendly message.
To run the Weather App locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Jha-Shubham19/SKJ_Weather.git
-
Navigate to the project directory:
cd SKJ_Weather
-
Install the required dependencies:
npm install
-
Start the app:
npx nodemon src/app.mjs
-
Open your web browser and visit http://localhost:8000 to access the Weather App.
To check the weather of a city, simply follow these steps:
-
Open the Weather App in your web browser.
-
In the input field labeled "Enter the city name," type the name of the city you want to check the weather for.
-
Click on the search button (a magnifying glass icon).
-
The app will display the weather information for the specified city, including the temperature and a weather status emoji.
-
If you want to check the weather for a different city, repeat the process with the new city name.
- wttr.in: A weather service that provides weather data in various formats, used to fetch real-time weather information for cities.
Contributions to the Weather App are welcome! If you find any issues or want to add new features, feel free to submit a pull request.