Giter Club home page Giter Club logo

eu-weather's Introduction

EU-Weather

The purpose of this repo is to show the weather for five european cities using angular 1.5 This is my first try at Angular 1.5

Demo

Click here to see it live.

Features

  1. Responsive design using Bootstrap
  2. When the site opens, it shows the city name, tempeture, and wind strength
  3. When clicking on a city tile, it will show an expanded weather forecast

Get Started

All the scripts frameworks have been included as script tags, so there is no need to install anything. All you need is a local web server that serves the single page app (spa). You may use node's http-server click here for instructions on how to install it.

Known Issues

  • It does not have test cases implemented.

How was it put together?

The spa is using two components:

  1. cityweather Component: This is the work horse of the site. It will display the initial tile by making an API call to http://openweathermap.org/. This call uses JSONP to workaround the cross-site scripting call. The tempeture shown in Centigrades is the avearage from the min and max for the day. When clicked, it will make a second call to the api to get the forecast weather for the selected city and displays it.

  2. showCities Component: It contains an array of city objects which shows the city name, and city id. It will then loop through this array creating cityweather components on the main index page.

eu-weather's People

Contributors

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