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 12.0.2.
- 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). Some test files haven't been provided. Feel free to add tests for selectors and reducers or anything which is worth testing.
- Complete the End to End test using Protractor or Cypress.
- 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.
This project was generated with Angular CLI version 12.0.2.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.
Run ng build to build the project. The build artifacts will be stored in the dist/ directory.
Run ng test to execute the unit tests via Karma.
Run npm run cypress:open to execute the end-to-end tests.
To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.