Giter Site home page Giter Site logo

weather-app's Introduction

Overview

This is a JS project to work and get comfortable with the APIs.
This is a weather project where-in initially the user is asked to grant his location permission. Once the user does that, his latitude and longitude are stored using the navigator.geolocation, and these are used to fetch his location's weather using the openweathermap API. Also the user can choose to search for a city by its name to know its weather, the user entered city name is used to fetch the weather of that city by passing it in the API.

Demo

You can check the live demo here.

My Learnings

  • One of my major learning in this project is how to use navigator.geolocation and store information using destructuring.
  • Furthermore, I learned how to call and fetch data using API(s) and async-await and how to convert that data in json format using the .json().
  • Moreover, I learned how to store and retrieve the data from the Session storage.

weather-app's People

Contributors

miheersharma22 avatar

Watchers

 avatar

Forkers

m-afnan2018

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.