This is a React weather forecast web application that allows users to search for their city and view weather information from https://www.weatherapi.com. The application also provides users with the ability to copy an embed link to share the forecast with others.
To run the application locally, follow these steps:
- Clone this repository and go to weatherapi.com to get your API key.
- Replace the api key in .env with your api key.
- Run the following commands:
npm install
npm start
To search for weather forecast, simply type in the name of the city you want to search in the search bar and press enter. The application will show you the weather forecast for the city you searched.
To copy an embed link of the weather forecast, click on the buttons with "Embed Links" label at the bottom of the weather forecast card. This will copy the embed link to your clipboard, which you can then use to share the forecast with others.
- HTML
- CSS
- JavaScript
- React
- Tailwind CSS
- https://www.weatherapi.com
- https://www.weatherapi.com for providing the weather forecast data used in this application.
This project is licensed under the MIT License. See the LICENSE file for details.