Skip to content

Yassinbesbes/WeatherCards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App Project

This project is a simple weather application using JavaScript, HTML, and CSS, fetching data from the OpenWeatherMap API.

Installation

Prerequisites

  • Node.js: Make sure Node.js is installed on your machine. You can download it from nodejs.org.
  • Git: (Optional) Install Git for cloning the repository. You can download Git from git-scm.com.

Clone the Repository

git clone <repository-url>
cd weather-app

Install Dependencies

npm install

Configuration

Obtain OpenWeatherMap API Key

  1. Sign up for a free account on OpenWeatherMap.
  2. Once logged in, navigate to your API keys section and copy your API key.

Configure API Key

// config.js
const API_KEY = 'your_api_key_here';

export { API_KEY };

Replace 'your_api_key_here' with your actual OpenWeatherMap API key.

Running the Application

npm start

Open your web browser and navigate to http://localhost:3000 to view the weather app.

Usage

  • Enter a location to fetch current weather information.
  • Explore the provided weather data.

Contributing

Feel free to fork the repository and submit pull requests.