Giter Site home page Giter Site logo

weather-nextjs's Introduction

Weather App

Link

https://weather-nextjs-omega.vercel.app/

Overview

This Weather App is a web application that provides users with up-to-date weather forecasts for their specified locations. It fetches weather data from the OpenWeatherMap API and displays it in a user-friendly interface. Users can view current weather conditions, as well as forecasts for the next five days.

Features

  • Current Weather: Display current weather conditions, including temperature, humidity, wind speed, and visibility.
  • Hourly Forecast: Show hourly weather forecast for the next few hours.
  • Daily Forecast: Provide a daily weather forecast for the next five days.
  • Search Functionality: Allow users to search for weather forecasts by location.
  • Responsive Design: Ensure the app is optimized for various screen sizes, including desktop and mobile devices.

Technologies Used

  • Next.js: React framework for building server-side rendered (SSR) React applications.
  • React Query: Library for fetching and caching data in React applications.
  • Tailwind CSS: Utility-first CSS framework for styling the app.
  • Axios: Promise-based HTTP client for making requests to the OpenWeatherMap API.
  • Date-fns: Library for manipulating dates and times in JavaScript.

Setup and Running the App Locally

Prerequisites

Make sure you have the following installed on your local machine:

Getting Started

  1. Clone the repository:

    git clone https://github.com/ryavee/weather-nextjs.git
    cd weather-nextjs
  2. Install dependencies: If you are using npm:

    npm install

    If you are using Yarn:

    yarn install
  3. Set up environment variables: Create a .env.local file in the root directory of your project and add your OpenWeatherMap API key:

    NEXT_PUBLIC_WEATHER_KEY=your_openweathermap_api_key
  4. Run the development server: If you are using npm:

    npm run dev

    If you are using Yarn:

    yarn dev

    Open http://localhost:3000 in your browser to see the app in action.

Building and Running for Production

  1. Build the application: If you are using npm:

    npm run build

    If you are using Yarn:

    yarn build
  2. Start the production server: If you are using npm:

    npm start

    If you are using Yarn:

    yarn start

    Open http://localhost:3000 in your browser to see the app running in production mode.

Contributing

If you would like to contribute to this project, please fork the repository and create a pull request with your changes. We welcome all contributions!

License

This project is licensed under the MIT License. See the LICENSE file for details.

weather-nextjs's People

Contributors

ryavee avatar

Watchers

 avatar

weather-nextjs's Issues

## Incorrect Footer Text on Weather App

Description:
There is an error in the footer text of the Weather App. The current footer reads:
Weather App
© Ravi Raj. Made with ❤️

This should be corrected and make sense to display the complete intended message.

Steps to Reproduce:

  1. Visit the Weather App website.
  2. Scroll down to the footer.
  3. Observe the incomplete sentence in the footer.

Expected Behaviour:
The footer should display the full intended message, such as:
Weather App
© Made with ❤️ and ☕ by Ravi Raj

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.