/weather-forecast

A weather forecast application built with NextJS(React) and Axios. The application fetches weather data for a given city from the OpenWeatherMap API and allows the user to view the temperature in either Celsius or Fahrenheit. It also handles errors gracefully and provides feedback to the user when a city is not found or an error occurs.

Primary LanguageJavaScript

Weather Forecast

This is a weather forecast application built with Next.js and Axios. The application fetches weather data for a given city and allows the user to view the temperature in either Celsius or Fahrenheit. It also handles errors gracefully and provides feedback to the user when a city is not found or an error occurs.

Built With

  • Next.js
  • Axios
  • VSCode

Getting Started

This application fetches weather data for a given city and displays it to the user. The user can choose to view the temperature in Celsius or Fahrenheit. The application also handles errors, such as when the city is not found, and displays an appropriate error message to the user.

To get a local copy up and running follow these simple example steps.

Prerequisites

  • Node.js installed on your local machine
  • NPM or Yarn to manage the packages

Setup

Clone the repository to your local machine:

git clone https://github.com/moise-mulungu/weather-forecast

Install

Navigate to the project directory and install the dependencies:

cd weather-forecast
npm install
# or
yarn install

Usage

npm run dev
# or
yarn dev

Deployment

To build the application for production, use the following command:

npm run build
# or
yarn build

live demo

Author

👤 Moise Mulungu

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

📝 License

This project is MIT licensed.