Skip to content

NordeaOSS/nordea-tdd-practice

Repository files navigation

Savings app

Simple Angular application for practising test-driven development (TDD).

1. Application structure

UI

  • AppComponent: Combines all the parts together
  • InputComponent: UI & logic to listen user inputs
  • ChartComponent: UI & logic to display data
    • Chart.js library is used to display charts

Components communicate with each other by using CustomEvent API.

Domain

  • All business logic is located under domain directory

2. Prerequisites

Install required tools

Before you can build the application, you have to install some required tools. These tools are required:

These tools are not required, but highly recommended:

  • Angular CLI allows you to use Angular commands from command line

Clone project

You can clone the project by running:

git clone https://github.com/NordeaOSS/nordea-tdd-practice.git

Install required dependencies

Before you can run the application, you have to install some required dependencies. Do this once after cloning the project!

You can install dependencies by running:

npm install

3. Run tests

Project is covered with unit tests. Unit tests are written by using Jasmine and executed by using Karma.

You can execute unit tests by running:

npm run test

4. Launch application

You can launch the application locally by running:

npm start

Additional materials

About

Simple Angular application for practicing test-driven development (TDD)

Resources

Stars

Watchers

Forks