A Code run to demonstrate the power of OOP, SOLID and other monsters while checking out currency representation problems in software development.
Pst, a hint, we are using babel, so if something is not working when you try this run, check out babel
Pst, another hint, the dev branch is better documented, so try git checkout dev
after cloning this repo
git clone https://github.com/profe-ajedrez/currency.git
npm i @babel/cli @babel/core @babel/node @babel/preset-env jest nodemon --save-dev
npm i -g --save-dev ndb
npm i big.js
When things breaks...
package.json
should look's like:
{
"name": "currency",
"version": "1.0.0",
"description": "wrapper to manage currencies",
"main": "index.js",
"scripts": {
"start": "nodemon --exec babel-node index.js",
"test": "clear && npm run build && jest",
"build": "babel index.js -d dist --source-maps"
},
"author": "",
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.15.4",
"@babel/core": "^7.15.5",
"@babel/node": "^7.15.4",
"@babel/preset-env": "^7.15.4",
"jest": "^27.1.0",
"nodemon": "^2.0.12"
},
"dependencies": {
"big.js": "^6.1.1"
}
}
npm i @babel/cli @babel/core @babel/node @babel/preset-env jest nodemon --save-dev
npm i big.js
npm test
Something in the line of:
This is what we could do in the assigned time