The Weather App is a web application that allows users to search for a place and check its weather. It utilizes the OpenWeatherMap API to retrieve weather data based on user input.
- Search for a location to check its weather .
- Display a list of matching locations as the user types.
- View weather details including temperature, humidity, and wind.
- React, Typescript and Tailwind CSS.
- OpenWeatherMap API: Provides weather data and forecasts.
Follow these steps to run the Weather App on your local machine:
- Clone the repository:
git clone https://github.com/kennywam/Weather-App.git
- Navigate to the project directory:
cd weather-app
- Install the dependencies:
npm install
-
Obtain an API key from OpenWeatherMap by signing up and creating an API key.
-
Create a .env.local file in the project root directory and add your API key:
Weathe_App_API_KEY=your_api_key_here
Note: I included the API in the code to avoid gitigore
- Start the development server:
npm start
- Open your browser and go to http://localhost:3000 to view the app.