The main objective of this challenge is to insert records to the database through file import.
- Node.js - evented I/O for the backend
- Express - fast node.js network app framework
- Typescript - typed superset of JavaScript that compiles to plain JavaScript.
- TypeORM - an ORM that can run in Nodej, browser, Cordova, PhoneGap, Ionic, React Native, NativeScript, Expo, and Electron platforms and can be used with TypeScript and JavaScript
- Yarn - package manager that doubles down as project manager.
With docker hub installed, follow the commands:
$ docker run --name gostack_postgree -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgrees
$ docker start gostack_postgree
Install dependencies and start the server.
$ yarn
$ yarn dev:server
$ yarn test
$ cross-env NODE_ENV=test jest
PASS src/__tests__/Transaction.spec.ts
Transaction
๐ should be able to list transactions
๐ should be able to create new transaction
๐ should create tags when inserting new transactions
๐ should not create tags when they already exists
๐ should not be able to create outcome transaction without a valid balance
๐ should be able to delete a transaction
๐ should be able to import transactions