GithubHelp home page GithubHelp logo

rgneville / weather-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 12 KB

A web application which dynamically displays the present weather at the user's favourite locations around the globe

Home Page: https://rgneville.github.io/weather-app/

HTML 12.26% JavaScript 54.79% SCSS 32.96%
javascript weather-app

weather-app's Introduction

WeatherNow

A web application which dynamically displays the present weather at the user's favourite locations around the globe, from an array of locations which is persisted in local storage. Features a clickable unit display, which will convert the displayed temperature from Celsius to Fahrenheit and back. Handles unsuccessful API calls by displaying a message to the user.

Lessons Learned

Was the first project I've ever made which consumes an external API - learned a lot about using async JavaScript (including Promises, async/await, fetch API and error handling).

First time working with JSON files, picked up extracting info from a JSON data structure and destructuring from this project.

Potential Future Features

  • Adding a small feature to each container which changes colour based on the temperature at the given location

  • Research so far indicates that in a front end only vanilla JS application there's no way to hide an API key - when more comfortable with node, come back and refactor to include an environment variable to keep the key off GitHub. Could do this with React, but that would involve refactoring the whole project and I wanted to keep one vanilla JS project in my portfolio!

Deployment

Deployed with github pages.

Get started

No dependencies - to run locally, open the project directory with VSCode. Install the Live Server extension (if you haven't already) and click "Go Live" in the blue bar at the bottom of the screen. This will open a live development server in your browser that updates in response to code changes.

weather-app's People

Contributors

rgneville avatar

Stargazers

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