Skip to content

Arslanshanii/Weather-APP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App with Express.js and OpenWeatherMap API

This is a simple weather application built using Express.js and the OpenWeatherMap API. It allows users to search for the weather conditions of a specific location and displays the temperature and weather condition.

Screenshot 2023-10-31 183214

Features

User-friendly web interface. Real-time weather data retrieved from the OpenWeatherMap API. Displays temperature and weather conditions for the searched location. Handles errors gracefully when the location is not found or if there are API issues.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js and npm (Node Package Manager) installed on your system.
  • An API key from OpenWeatherMap. You can obtain one by signing up at OpenWeatherMap.

Installation

  1. Clone this repository to your local machine:
  2. Navigate to the project directory:
  3. Install the project dependencies using npm: npm install
  4. Set your OpenWeatherMap API key:
  5. Open the index.js file.
  6. Replace "YOUR_API_KEY" in the API_URL with your actual API key.

Usage

Start the application: nodemon index.js

  1. The server will start, and you can access the application in your web browser at http://localhost:3000.
  2. Enter the name of the location (e.g., "London") in the search box and click the "Get Weather" button.
  3. The weather information for the specified location will be displayed on the page.

Customization

You can customize this application by modifying the frontend (HTML/CSS) and backend (Express.js) code to fit your specific requirements. Feel free to make changes to the UI, error handling, or add more features as needed.

Acknowledgments

Thanks to the OpenWeatherMap API for providing real-time weather data. Feel free to update this README with additional information, documentation, or usage instructions as needed for your specific application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published