Giter Site home page Giter Site logo

weather-app-javascript-pinteresz's Introduction

Weather App

Story

People Always Talk About The Weather... They are also always checking the weather in native and web applications. Now you can go further and create your own web based Weather application!

What are you going to learn?

  • Create a GET requests
  • Getting data from an open API
  • Working with JSON files

Tasks

  1. Create a simple input field with an autocomplete feature (when the user starts typing, after 3 characters a list of cities appear which matches that search). Create a card that shows the weather data (temperature, sky conditions, humidity, etc.) of the selected city. Searching and selecting a new city should update the card.

    • When we open up the page, there is a simple input field with an autocomplete feature that shows search matches after 3 characters
    • When we search and select a city, the weather of this city is showing up
  2. [OPTIONAL] Do some improvements in order to make the web application more interesting.

    • There is a button to put a city into the favourites, which list shows up when the input field is selected and the input is empty (the favourite list data doesn't need to persist after a reload)
    • Weather panel is showing a fetch api spinner while the content is loading Sample loading fetch API spinner on Codepen.
    • Assign a nice background image to the chosen city that fits nicely to the site and apply it on the background. You can create object which store city name and image url.
    • You can use Pexels API to get image for chosen city dynamically. Read the official Pexels API Documentation.
    • Generate a free API key from in order to access the Pexels API.
    • Use presented endpoint to get image for chosen city e.g. for Krakow: https://api.pexels.com/v1/search?query=Krakow Weather App Pexels API in Postman

General requirements

  • There is a <div id="root"> tag without children when the page loads in
  • All the contents are placed and removed by javascript

Hints

  • Plan carefully the project with your team mates
  • You can use this API, you have to register for free and use an Access ID/Secret Key.

Background materials

weather-app-javascript-pinteresz's People

Contributors

zsocc avatar pinteresz avatar kovadav avatar

Watchers

Eusebiu Schipor avatar Livia Dobai avatar Denes Csesznegi avatar Ciprian Dragoe 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.