Git Product home page Git Product logo

vue-weather's Introduction

React Weather App

This is a React website that allows users to search for weather information of different cities. It uses the OpenWeatherMap API to retrieve weather data and the Geonames API for city autocomplete functionality.

Installation

  1. Clone the repository.
  2. Navigate to the project directory.
  3. Install the dependencies by running the following command: npm install

Usage

To run the React website, use the following command: npm start The website will be accessible at http://localhost:3000.

Features

Search for a city and get its weather forecast. Autocomplete functionality for city names. Display weather information for the selected city, including temperature, UV index, wind speed, and humidity. Show weather icons based on the current weather conditions. Error handling for API requests and displaying error messages.

Dependencies

The following dependencies are used in this project:

Vue.js: A JavaScript framework for building user interfaces. Axios: A library for making HTTP requests. Vuetify: A material design component framework for Vue.js. Chart.js: A JavaScript charting library.

Configuration

To use the OpenWeatherMap and Geonames APIs, you need to provide the API keys in the appropriate places in the code: replace process.env.VUE_APP_WEATHER_API_KEY in the code with your OpenWeatherMap API key. You can obtain an API key by signing up on the OpenWeatherMap website. Geonames API Key: Replace process.env.VUE_APP_CITY_API_KEY in the code with your Geonames API key. You can get an API key by creating an account on the Geonames website. Make sure to store your API keys securely and avoid committing them to version control.

License

This project is licensed under the MIT License.

vue-weather's People

Contributors

michellewatts20000 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.