Challenge Overview

Challenge Overview

You are provided with a simple ASP.NET MVC Application, and we would like to integrate it with one of SunShot catalyst resources called URDB via API.

Challenge Requirement

There are no UI changes in this challenge. You will update the backend to make the “home” utility rate widget functional :

  • Update the title of the page to be ‘U.S. Utility Rate’ instead of ‘Import your contact info’.

  • Member must be logged in to view the widget.

  • The flow and logic will be as follows :

    • The user can input their zipcode in and a button they can press on to "submit".

    • Validate the input to be a valid US zip code.

    • The backend will use NREL API to retrieve Utility Rates.

      • API endpoint info : http://developer.nrel.gov/docs/electricity/utility-rates-v3/

      • The zip code will be passed as value for 'address' query string.

        • ���clarification : It is not mentioned in the api documentation that address can be a zip code, but you can pass it as value in that 'address' field.

      • The format of response is up to you, it returns json format by default.

    • If error returned by API, propagate it to the frontend page and display it in an error div.

    • Returns the commercial, industrial, residential to the frontend page.

    • Display the result below the button in this format :

      • Residential: 16 cents/kWh

      • Commercial: 13.3 cents/kWh

      • Industrial: 9.6 cents/kWh

    • When no data found for passed address, you will get ‘no data’ in the residential/commercial/industrial fields. In that case the frontend should display ‘No utility records available for this zipcode’.

  • The NREL API key should be configurable.

  • Update NuGet if you are adding new binaries to the solution.

Documents

A visual studio solution for the web application is provided in the challenge forums.



Final Submission Guidelines

Deliverable

  • The new and updated files that address the above solution.

  • Detailed deployment guide for how to setup and verify your solution.

ELIGIBLE EVENTS:

2015 topcoder Open

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30049253