This is a web application built using TypeScript, React, Next.JS, and Vite to display real-time weather information and forecasts. It uses the AccuWeather API to retrieve weather data and displays it in an intuitive and easy-to-understand format.
- TypeScript
- React
- Next.JS
- Vite
- AccuWeather API
-
Clone the repository:
git clone https://github.com/mayra-palomares/weather-app.git
-
Create an account in AccuWeather to get an API key.
-
Create a .env file in the root directory with the following variables:
NEXT_PUBLIC_WEATHER_API_URL=http://dataservice.accuweather.com NEXT_PUBLIC_WEATHER_API_KEY= NEXT_PUBLIC_DEFAULT_CITY=Lisboa,pt
-
Install dependencies:
npm install or yarn install
-
Run the application:
npm run dev or yarn dev
-
Open your browser and navigate to http://localhost:3000