Giter Club home page Giter Club logo

accuweatherproject's Introduction

3/12/2014

Project requirements:
As part of the interview process we would like for you to write a smallASP.NET MVC C# web site using our weather API and post the code to GitHub for us to look at it. 

You won’t be judged on how good this web site looks, but we would like to see (1) your problem solving skills and (2) your ASP.NET MVC C# and HTML/JavaScript skills in practice. The web site should allow a user to perform the following options: 

·         Search for a city (via the locations end point)
·         View the “Current Conditions” for that city (via the current conditions endpoint)
·         View the “Hourly Forecast” for the next 24 hours for that city (via the forecasts endpoint) 

You can find documentation about our API and a sample of the code needed to perform some tasks requested on this link:http://apidev.accuweather.com/developers/samples 

Our API requires a key in order to give you access to our data. Please use API key “hidden”. Below is an example in how to search for the information for a given city (State College in this case) and fetch the current conditions and hourly forecast for this city. 

We suggest that you keep the site simple. We are interested in yourASP.NET MVC C#/HTML/JavaScript skills rather than your ability to find and use jQuery plugins and other UI frameworks. We do not need a link to the running web site, but we must get a link to the source code of the web site.

Actions performed:
I created a responsive single page c# MVC site. 

The applications single view displays the current weather conditions, a 24 hour forecast, and a chart using the 24 hour forecast values for the requested location.


1. When the site first starts the clients public ip address is detected using the site http://checkip.dyndns.org.  If this fails, a default public ip address is used from the State College area.

2. The application then uses the public ip address to get a geographic location of City and State using http://freegeoip.net. When the client searches using the search input, the application uses only the AccuWeather api to get the location key.

3. The application uses the AccuWeather api(s) to 
	a. Retrieve a location Key from the State and City returned from freegeoip.net. 
	b. Retrieve current conditions.
	c. Retrieve a 24 hour forecast.
	d. Retrieve autocomplete location information.

4. The application used a separate class called HelpMethods to perform the api calls. 

5. Multiple object classes were created to correctly and easily deserialize the returned json from the api calls using the JsonConvert.DeserializeObject method.

accuweatherproject's People

Contributors

williamflock avatar

Watchers

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