Coder Social home page Coder Social logo

aluma / your-weather-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 1.5 MB

Simple JavaScript ES6+ Progressive Web Application Weather app using the openweathermap API

Home Page: https://aluma.github.io/your-weather-app/index.html

License: MIT License

HTML 32.93% JavaScript 42.90% CSS 24.17%
pwa pwa-apps weather openweathermap-api javascript-es6-weather no-frameworks no-libraries weather-app simple-app

your-weather-app's Introduction

your-weather-app

This is a simple JavaScript ES6+ PWA (Progressive Web Application) weather app that takes a city name and returns the current weather for that city by using the openweathermap API. I have consciously chosen to make this app minimal. There are no libraries (unless you want to count FontAwesome), frameworks, tests, task runners, build tools, etc.

Tech used:

JavaScript ES6+

HTML5

CSS3


NOTE: I believe the publicly sourced API key that I'm using to access the openweathermap API is no longer working. I strongly urge you to replace the 'const apiKey' on line 5 of the 'main.js' file with a reference to your own private API key that you can obtain for free from openweathermap.

Instructions:

  1. Download the repo ZIP file, or clone the repo: https://github.com/Aluma/your-weather-app.git

  2. Open the index.html file in one of the popular browsers.

  3. Enter city name in the appropriate field and execute the search via 'Enter' key or clicking/tapping the search icon. Please enter city name only; no state. This is due to a limitation of the openweathermap API as detailed below.

That's it! :-)


*** Known Limitation: openweathermap API currently only accepts city name in the search field. It has no way of identifying U.S. state abbreviations. So, for cities with duplicate names one would have to provide the exact geo coordinates, or perhaps the city code. This limitaion is discussed here: https://openweathermap.desk.com/customer/portal/questions/16829365-state-is-missing-from-the-location-information-only-shows-city-this-is-critical-for-us-clients


DEMO: https://aluma.github.io/your-weather-app/index.html

Lighthouse Audit Report:
Lighthouse audit report

Before weather search:
app screenshot

After weather search:
search result screenshot


your-weather-app's People

Contributors

aluma avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

curioustauseef

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.