Skip to content

profe-ajedrez/currency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currency

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

How To

1 Clone the repo

git clone https://github.com/profe-ajedrez/currency.git

2 Enter to the project folder and install dependencies

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

Troubleshooting

When things breaks...

1 Double check package.json

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"
  }
}

2 Re run npm

npm i @babel/cli @babel/core @babel/node @babel/preset-env jest nodemon  --save-dev
npm i big.js

4 Run tests

npm test

5 Enjoy!

What will we do

Something in the line of:

currency_coderun

What we did

This is what we could do in the assigned time

coderundiagram

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published