Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TimurM/AccuWeather

Repository files navigation

AccuWeather — Get Accurate Weather anytime, anywhere

This project is an Angular application that displays historical weather as well as a weather forecast for up to 15 days.

You can click here to visit the Live App.

to run this app install npm and then run:

npm start

to view the site navigate to:

http://localhost:8000/app/#/

##About this App:

###Tech Overview:

###Features Overview:

  • The browser utilizes a Geolocation API to get user's current location
  • The user is also able to enter a desired location by either typing a city name, country name, zip code, or geo coordinates
  • The AccuWeather app displays up-to-date current city information for the user's location
  • It also enables the user to enter specific dates to search for historical weather
  • The Application also displays the number of Sunny Days for the time Period (note a rainy day is classified as a day where precipitation is grater than 1mm)
  • The Chart also displays max temperature for the time period and precipitation in mm.

###Limitations:

  • You can only lookup historical dates for up to 35 days at a time
  • I also set a limitation for the user to look back as far as April 2015
  • A user can only look up either historical or forecasted API, because the app needs to make 2 separate calls

###Development Approach

  • I've build a custom directive 'ng-currentWeather' to display current weather information
  • I'm using a [Angular Chart] (http://jtblin.github.io/angular-chart.js/#getting_started) directive to display the weather information
  • I created a weatherFactory to handle to separate requests for past weather information and for the forecasted weather information
  • Since I'm building a client-side app and my plan is to host it on github pages, I'm not securing the API Key. (if it was a production app, I would of course do it on the server side)
  • I also added over 10 unit tests to test the functionality of the controller and the weatherFactory following TTD principals

###Resources used to build this app:

About

A weather app build with Angular.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published