The Weather App is a simple web application that provides real-time weather information based on user input. It utilizes the OpenWeatherMap API to fetch weather data and displays it in a user-friendly interface.
To run the Weather App locally, follow these steps:
-
Clone the repository:
git clone https://github.com/bhupendrasambare/Weather-App.git
-
Navigate to the project directory:
cd Weather-App
-
Install dependencies:
npm install
-
Create a configuration file (
config.js
) in the root directory and add your OpenWeatherMap API key:// config.js const config = { apiKey: 'YOUR_OPENWEATHERMAP_API_KEY', }; module.exports = config;
Replace
'YOUR_OPENWEATHERMAP_API_KEY'
with your actual API key. -
Start the application:
npm start
The app will be accessible at
http://localhost:3000
by default.
-
Open the Weather App in your web browser.
-
Enter the name of the city you want to get weather information for.
-
Click the "Get Weather" button.
-
The app will display real-time weather information for the specified city.
- Real-time weather information retrieval.
- User-friendly interface.
- Responsive design for various screen sizes.
- Supports a wide range of cities worldwide.
If you would like to contribute to the Weather App, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature-name
. - Make your changes and commit them:
git commit -m "Description of changes"
. - Push your changes to the new branch:
git push origin feature-name
. - Open a pull request with a detailed description of your changes.
Please adhere to the existing coding style and conventions.
This project is licensed under the MIT License - see the LICENSE file for details.