0.1.9 • Published 1 year ago

@eevos/banking-demo v0.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Banking Library Demo

TypeScript library package demo for school. This project was created with typescript-starter

Usage

Install the library

npm i @eevos/banking-demo

Example of creating a Person, CurrentAccount and Bank class instances.

import {
  Bank,
  CurrentAccount,
  Person,
} from "@eevos/banking-demo";

// Create a Person
const person = new Person("Doe", "John", new Date("1978-04-12"));

// Create a CurrentAccount associated with the person created, set the credit line and make a deposit
const account = new CurrentAccount("000-111", person);
account.creditLine = 20;
account.deposit(200);

// Create a bank and add the account created
const bank = new Bank("My Bank");
bank.addAccount(account);

Read the docs: https://alexandrelamberty.github.io/banking-lib-demo/

Development

Clone the library and update the dependencies:

git clone https://github.com/alexandrelamberty/banking-lib-demo 

execute:

npm run watch:build 

and / or

npm run watch:test 

then start implementing features and adding tests...

Working locally with a project that use the library

Link the library locally with:

npm link

In the main project that use the library, link the package library to the project:

npm link @eevos/banking-demo

And use anything that will watch your code.

Checkout this post https://devimalplanet.com/how-to-build-and-run-typescript-watch-mode

This will allow the live update of the package in the project that use it.

Tests

Simply run

npm run test:unit
0.1.8

1 year ago

0.1.9

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago