Using the Free open weather map api (http://openweathermap.org/forecast5 api key has been included inside weather.service.ts)
- Build an application that allows you to search the weather forecast for a city.
- Every time a new city is searched - Add to a table of cities displaying the next 24 hours weather forecast.
- Build the application using ng-rx
We have provided a skeleton application generated with Angular CLI version 1.7.3.
- Complete the components(search, results and the weather container)
- Complete the Weather.service.ts, using the API provided by the openweathermap for a given city
- Complete the unit test files (*.spec.ts).
- Complete the End to End test using Protractor.
- Intrfaces have been provided in model/weather.ts. Please use these interfaces.
- An example layout table is provided inside the results component.Please use this as template.
- We expect the application to compile and all the tests to pass.
- Please upload your code to GITHUB and once you are done send us the link.
Run npm start
for a dev server. App will open here http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the e2e tests via Protractor.