GithubHelp home page GithubHelp logo

shuddha2021 / city-weather-forecast-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 53.63 MB

Forecasting Made Easy: Interactive Weather Updates for Any City

Home Page: https://react-weather-app-city-1.vercel.app

HTML 16.52% CSS 17.97% TypeScript 65.50%
autocomplete axios deployment dynamicui errorhandling openweathermap-api react responsive-design typescript vercel

city-weather-forecast-app's Introduction

React Weather App

This is a simple weather app built with React and TypeScript. It uses the OpenWeatherMap API to fetch the current weather data for any city in the world. It also displays a colored circle that changes according to the weather description.

Screenshot 2023-06-21 at 9 59 42 AM Screenshot 2023-06-21 at 10 00 39 AM

Features

  • Responsive design that adapts to different screen sizes
  • Auto-complete feature that suggests city names as you type
  • Error handling that shows a message if the city is not found or the API request fails
  • Dynamic background color that changes according to the weather description

Demo

You can see a live demo of the app here: https://react-weather-app-city-1.vercel.app/

Installation

To run the app locally, you need to have Node.js and npm installed on your machine. You also need to get an API key from OpenWeatherMap (https://openweathermap.org/api).

Then, follow these steps:

  1. Clone this repository: git clone https://github.com/your-username/react-weather-app.git
  2. Go to the project directory: cd react-weather-app
  3. Install the dependencies: npm install
  4. Create a .env file in the root folder and add your API key as REACT_APP_API_KEY
  5. Start the development server: npm start
  6. Open http://localhost:3000 in your browser

Technologies

This app is built with the following technologies:

city-weather-forecast-app's People

Contributors

shuddha2021 avatar

Watchers

 avatar

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.