This is a web application for tracking the weather in various locations. The app is built with Next.js, Material UI, SCSS, Axios, WeatherAPI's API, React.js, and TypeScript.
- View current weather conditions in a selected location
- View a 2-day weather forecast in a selected location
- Search for a location by city name
- Display base location by user's IP address
To run this app locally, you will need to have the following installed on your system:
- Node.js (v14 or later)
- npm package manager (v6 or later)
- Clone this repository
git clone https://github.com/FelBenini/NextWeather.git
- Install dependencies:
cd nextweather
npm install
- Set up the environment variables:
Create a .env.local file in the root directory of the project and add the following environment variables:
API_KEY=<Your weatherapi key>
PEXELS_API_KEY=<Your pexels api key>
Replace API_KEY with your API key from WeatherAPI and the PEXELS_API_KEY with your API key from Pexels.
Start the development server:
npm run dev
The app will be available at http://localhost:3000.