Code Monkey home page Code Monkey logo

weather_app_tut's Introduction

Build a Weather App with Vanilla JavaScript

โœ… Check out my YouTube Channel with all of my tutorials.

Description:

Learn how to build a Weather App with Vanilla Javascript, HTML, and SCSS. This Javascript Project for Beginners uses the Open Weather Map API to retrieve weather data and displays a mobile first responsive web design. This Vanilla JS app also features accessibility considerations, the geolocation API, persistent data storage, the Fetch API with Async / Await, and Serverless Functions.

If you have completed my 8 hour JavaScript course tutorial video, this is a great project for pulling all of those concepts together in one application.

YouTube: Build a Weather App with Vanilla JavaScript

Academic Honesty

DO NOT COPY FOR AN ASSIGNMENT - Avoid plagiargism and adhere to the spirit of this Academic Honesty Policy.

weather_app_tut's People

Contributors

gitdagray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

weather_app_tut's Issues

Missing class attribute in hr tag

Hello Dave,

the hr tag in dist/index.html:55 has a fade-in class name without the class attribute itself.

Yes I'm the one from your YouTube Channel :)

By zip code search is not working with 'INDIAN' zip codes

Getting weather updates through zip code is limited to 5-digit ZIP CODES.
Suggestion: add {} curly braces just after the $ in the regex expression in getCoordsFromApi() func.

export const getCoordsFromApi = async (entryText, units) => {
const regex = /^\d+${}/g;
const flag = regex.test(entryText) ? "zip" : "q";
const url = https://api.openweathermap.org/data/2.5/weather?${flag}=${entryText}&units=${units}&appid=${WEATHER_API_KEY };
const encodedUrl = encodeURI(url);

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.