GithubHelp home page GithubHelp logo

raissa-k / typescript-node-tinybank Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 262 KB

Practicing the use of TypeScript along Node.js

License: Do What The F*ck You Want To Public License

TypeScript 76.54% HTML 4.00% CSS 19.46%
chai mocha nodejs testing typescript

typescript-node-tinybank's Introduction

TypeScript-Node.js Tiny Bank

Practicing the use of TypeScript along Node.js

Roadmap

  • Implement the deposit and withdrawal methods in the BankAccount class

    • Balance must change according to deposited value
    • Only accounts marked as "true" and a balance higher than the requested value can make withdrawals
  • Implement the method "loan" (getLoan) in the CompanyAccount class

    • The balance must change according to the amount entered for the loan
    • Only accounts marked as "true" can take loans
  • Create a new account type from BankAccount

    • This account should not receive new attributes
    • This account will have a deposit method, which will add "10" more to amount stored in the account (i.e.: an initial deposit of "100" will add "110" to the balance)
  • All attributes of any account must be private

  • The attributes "name" and "accountNumber" must not be changed internally or externally

  • Create instances of each of the account types in app.ts and execute the possible methods.

Run Locally

Clone the project

git clone https://github.com/raissa-k/typescript-node-tinybank.git

Go to the project directory

cd typescript-node-tinybank

Install dependencies

npm install

Start the server

npm run dev

Run tests

npm test

typescript-node-tinybank's People

Contributors

raissa-k avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.