Giter Club home page Giter Club logo

weather_app's Introduction

Weather App

Description

The Weather App is a simple web application that displays the current weather and background videos based on the temperature of a given location. The user can search for a location by entering a city name or a zip code, and the application will retrieve the weather data from the Weather API.

Installation

  • Clone the repository to your local machine using git clone.
  • Navigate to the project directory using cd weather-app.
  • Install the project dependencies using npm install.
  • Create a .env file in the project directory, and add your OpenWeatherMap API key as follows: API_KEY=.
  • Start the server using npm start.
  • Open another terminal window and build the client-side code using npm run build.
  • Start the client-side code using npm run serve.
  • Open your web browser and navigate to http://localhost:5000 to view the application.

Usage

To use the Weather App, follow these steps:

  • Enter a city name in the search bar.
  • Press the "Search" button or press Enter.
  • The application will retrieve the weather data for the location you entered and display it in the weather display.
  • If the temperature is above 25°C, the application will play the "sunny" video in the background; otherwise, it will play the "partlycloudy" video.

weather_app's People

Contributors

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