This is a simple weather app built with Next.js 13 that allows you to check the weather forecast for different locations. It uses Weather Api for fetching weather data.
- View current weather conditions for a specific location.
- Get a 7-day weather forecast.
- Get weather of locations in °C and °F.
- Dark and Light mode.
To run this app locally, follow these steps:
1. Clone the repository to your local machine:
git clone https://github.com/dayoolacodes/clearsky.git
2. Navigate to the project directory:
cd clearsky
3. Install the dependencies:
npm install
4. Configure API Keys:
- You will need to obtain an API key from Weather Api and configure it in your project. Refer to the API Docs for more details.
5. Start the development server:
yarn dev
6. Open your browser and access the app at http://localhost:3000.
You can configure the app by modifying the following files:
- Create a
.env
file in the project root and configure it with your API key as follows:
NEXT_PUBLIC_API_KEY=your_api_key_here
- Enter a location in the search bar to get the current weather and 7-day forecast.
- Weather API for providing weather data.
-
Next.js 13 Documentation: https://nextjs.org/docs
-
[API Provider Documentation]: Weather API Docs
Note: The minimum Node.js version that supports Next.js 13 is 16.14.0.