Coder Social home page Coder Social logo

weather-app's Introduction

weatherApp Project

by M. Bambalan
Technologies used:

  • HTML5
  • CSS3
    • Font Awesome 5
  • Sass
    • Nesting
  • Javascript
    • webpack
    • localStorage API
    • OpenWeatherMap's Weather API
    • Geolocation API

Dev's Reflection

I started learning webpack a while ago. Setup is tedious but is all worth it at the end. Webpack's output is said to have a great performance because it minifies every thing (js and css files).

I touched APIs again. Rehashed how to use Promises,asyncs, awaits, and jsons. I get data from the Weather API of OpenWeatherMap.

Features

  • Weather data from current device location using Geolocation API
  • Use of localStorage for offline use
  • Search the weather of a city
  • Toggle units from metrics to imperial and vice versa
  • Background color changes depending on time of day (light blue for morning, orange for afternoon, and navy blue for evenig)

Commits

02/21/2021 - Initial Commit
Created a mockup of the whole app. Data were hard-coded.

02/22/2021
Rendered the data from the Weather API.

02/23/2021
Converted the rendered time to local time from UTC. Added theme depending on the time of day. The search and geolocation features do not work yet.

02/24/2021
Refactoring the flow of the code. I realized that it's better to get the data from the API on window load, after location prompt, or by user request via the search bar. Used localStorage to store fetched data.

Finally, got the geolocation API to work.

Added dragEvent for desktop users.

02/25/2021
Added a toggle to change temperature units from metric to imperial and vice versa.

weather-app's People

Contributors

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