Code Monkey home page Code Monkey logo

weather-app's Introduction

Weather App

A Web Application which shows the current day's temperature and other details like wind speed, humidity etc. of the entered city or zip code. It also shows hourly forecast of the day of next 6 hours and similarly, it also shows weekly forecast of the location. A user can search these relevant information by entering a city name or zip code of a particular location they want to. Weather details can also be retrieve for their current location. User can switch the units of relevant details which they want it to be shown metric or imperial.

Live Demo

Screenshot

Live Website: Weather App

Getting Started

  • Make you have Node.js and npm installed in your system.
  • You need an API key from OpenWeatherMap. After creating an account, grab your key.
  • Then, under the src directory, go to WeatherFetchData and replace API_KEY with your OpenWeatherMap API Key or add it to your .env file with name REACT_APP_API_KEY.

Installation

  • Clone the repository:
git clone https://github.com/vaibhav797/weather-app.git
  • Install the packages using the command npm install.

Used Libraries

  • react-js
  • chakra-ui
  • tailwind css
  • react-icons

Deployment

  • To deploy this project run npm run build.
  • An optimised .build will be created and used for deployment.
  • Create an account in Netlify deploying website and click add new project and drag and drop .build file into it.
  • Project will be published and can be viewed through the link it has produced from anywhere.

Environment Variables

To run this project, you will need to add your openweather api key in environment variables to your .env file.

REACT_APP_API_KEY

Features

  • Current Location Weather forecasting.
  • Toggle units between metric or imperial.
  • Search by city name or zip code.
  • Weather Forecast for next 6 hours and next 6 days.

weather-app's People

Contributors

vaibhav797 avatar

Watchers

 avatar

weather-app's Issues

My observation

Hello,

Great and simple app but when the user enters the name of the town there is no precise explanation in which region, the county is located (there may be several towns with the same name in a given country)

Is it possible to make Precipitation in percent and amount (mm) and Sunrise/Sunset and local time for any place?

Thank you

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.