Simple Angular application for practising test-driven development (TDD).
- 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.
- All business logic is located under domain directory
Before you can build the application, you have to install some required tools. These tools are required:
- Nodejs JavaScript runtime environment
- Git Version Control System
- Some code editor such as Visual Studio Code
These tools are not required, but highly recommended:
- Angular CLI allows you to use Angular commands from command line
You can clone the project by running:
git clone https://github.com/NordeaOSS/nordea-tdd-practice.gitBefore 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 installProject 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 testYou can launch the application locally by running:
npm start