/banking

Primary LanguageTypeScript

Banking Setup

Code Coverage

Explanation

A simulation of a simple bank account was created, with three entities: User, representing the account owner, BankAccount, and the Transactions entity to control the account's transaction flow as well as its balance. Logic was implemented to update the balance in real-time when manipulating any transaction in the system.

Technologys

  • Docker
  • NestJS
  • NodeJs
  • JestJs
  • TypeORM
  • Postgres
  • Husky
  • Libs : Prettier, Lint, Swagger

Requirements

  • Docker
  • OS Preference Linux or Windows WSL Mode

Docs

Run Project

  • Create .env from .env-local
  • Run - yarn
  • docker-compose build
  • docker-compose up -d
  • Run yarn run migrate:run - to create migrations
  • Run yarn run start:dev

Import all endpoints from folder /docs to use in insomnia.

Testing

  • Only run : yarn test

Finishing

image