This project is a simple weather application using JavaScript, HTML, and CSS, fetching data from the OpenWeatherMap API.
- 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.
git clone <repository-url>
cd weather-app
npm install
- Sign up for a free account on OpenWeatherMap.
- Once logged in, navigate to your API keys section and copy your 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.
npm start
Open your web browser and navigate to http://localhost:3000 to view the weather app.
- Enter a location to fetch current weather information.
- Explore the provided weather data.
Feel free to fork the repository and submit pull requests.