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.
- Docker
- NestJS
- NodeJs
- JestJs
- TypeORM
- Postgres
- Husky
- Libs : Prettier, Lint, Swagger
- Docker
- OS Preference Linux or Windows WSL Mode
- 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.
- Only run : yarn test