Angular2-HttpClient-Tutorial | Open Banking Assignment
- which developed using Halifax openbanking API and Angular2 frameworkTo get you started you can simply clone the Angular2-HttpClient-Tutorial
repository and install the dependencies:
You need git to clone the Angular2-HttpClient-Tutorial
repository.
We also use a number of Node.js tools to initialize and test Angular2-HttpClient-Tutorial
. You must have Node.js
and its package manager (npm) installed.
Angular2-HttpClient-Tutorial
Clone the Angular2-HttpClient-Tutorial
repository using git:
git clone https://github.com/shahumang23/Angular2-HttpClient-Tutorial.git
cd Angular2-HttpClient-Tutorial
We have two kinds of dependencies in this project: tools and Angular framework code. The tools help
us manage and test the application.
npm
, the Node package manager.
npm install
After that, you should find out that you have
below new folders in your project.
node_modules
- contains the npm packages for the tools we needWe have preconfigured the project with a simple development web server. The simplest way to start
this server is:
npm start
Now browse to the app at [http://localhost:9000/
].
The Angular2-HttpClient-Tutorial
app comes preconfigured with unit tests. These are written in Jasmine,
which we run with the Karma test runner. We provide a Karma configuration file to run them.
karma.conf.js
.spec.js
suffix (e.g.controller.spec.js
).The easiest way to run the unit tests is to use the supplied npm script:
npm test
This script will start the Karma test runner to execute the unit tests. Moreover, Karma will start
watching the source and test files for changes and then re-run the tests whenever any of them
changes.
This is the recommended strategy; if your unit tests are being run every time you save a file then
you receive instant feedback on any changes that break the expected code functionality.