Explore real-time weather with this web app using OpenWeatherMap API. Get current weather by location, search cities, and grant location access. Built with HTML, CSS, JavaScript.
- Real-time Weather Updates: Get real-time weather updates for any city.
- Location-Based Weather: Automatically fetch weather information based on your current location.
- Search Weather by City: Search for weather information by entering the name of the city.
- Responsive Design: The app is optimized for various screen sizes and devices.
- HTML
- CSS
- JavaScript
- Node.js
- Express.js
- OpenWeatherMap API
- Clone the repository.
- Run the following command to install dependencies:
Replace
npm install
npm
withyarn
if you're using Yarn as your package manager. - Obtain necessary API keys or setup instructions.
- Run the project locally.
- Upon accessing the Weather App, you will see two tabs: "Your Weather" and "Search Weather".
- Click on the "Your Weather" tab to view weather information based on your current location (requires location access).
- Alternatively, click on the "Search Weather" tab and enter a city name in the search field to view weather information for that city.
- If location access is not granted or if the entered city name is incorrect, appropriate error messages will be displayed.
- Weather icons: OpenWeatherMap Weather Icons
- Flag icons: Flag CDN
- Loading animation: loading.io