/material-weather

SPA showcasing Weather and Forecast from different cities

Primary LanguageTypeScriptMIT LicenseMIT

material-weather

SPA showcasing Weather and Forecast from different cities. This assignment is made to present at Backbase.

This project was generated with Angular CLI version 7.3.9.

TODO List

  • Implement UT
  • Implement E2E Test

Requirements - Exercise

"We will use Open Weather Data to create a single page application that presents a list of 5 European cities (you can choose the ones you prefer). Your goal is to get the current weather situation displaying the city name plus average temperature and the wind strength. Clicking on an item shows the forecast in the next hours. You can adjust the UI how you see fit for the best result but sticking to a single page application is mandatory. We would prefer if you will deliver the code using BitBucket (private repo) but also a zip file is fine.""

Prerequisites

Development server

Run npm run start:dev for a dev server. http://localhost:4200/.. The app will automatically reload if you change any of the source files.

Code scaffolding

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.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Production server

A basic Express server is provided, after you build the application you can run it using the following command on the command promt npm start. Then Navigate to http://localhost:3000/.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.