/countries_test

An app putting a UI on the https://restcountries.eu public API

Primary LanguageTypeScript

Countries Test

This project was generated with Angular CLI version 7.1.3. Please install it globally if you don't have it by running:

npm install -g @angular/cli

Install dependencies

Run npm install to set up npm package dependencies in the project folder

Development server

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.

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.

Running unit tests

Run ng test to execute the unit tests via Karma.

Notes

Some things that can be done to increase the quality of this repo if there was time:

  • Unit tests can be more exhaustive, especially around observables
  • Integrate sonarqube into the build pipeline to get more common issues surfaced sooner
  • Introduce either e2e or Selenium based tests for completness
  • Scope out further requirments so the proposed solution fits usage patterns better