Skip to content

alisaduncan/tutorial-angular-httpclient

Repository files navigation

TutorialAngularHttpclient

A working version of the application can be found at https://alisaduncan.github.io/tutorial-angular-httpclient/

I wrote a post about Http interceptors and writing unit tests on The Practical Dev.

This project was an opportunity for me to play with Angular, RxJS, and Material. The app calls JSONPlaceholder API to retrieve users and POST a new user. The code contains examples on utilizing Angular's HttpClient and corresponding unit tests. Unit tests for the view have been disabled for now.

This project was generated with Angular CLI version 7.0.2.

Prerequisites

You must have npm installed and after cloning run npm install.

Running the application

Run npm start to start the application. It will automatically open a browser window.

Running Tests

Run npm run tests to run the unit tests in watch mode. Run npm run tests -- --watch false or ng test --watch false to run the test just once.

e2e tests are not supported yet.

About

Simple app using HttpClient and associated tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published