My solution to the Refactoring kata challenge while adding a CLI for handling extra workloads before running updates
- Node.JS and NPM (application was built using node V16)
- Git (recommended but not mandatory)
# clone repository
$ git clone [email protected]:Emmanuerl/refactoring-kata.git
# cd into path
$ cd refactoring-kata
# install dependencies
$ npm install
#
# Create two terminal windows with both windows in the root directory of the applciation
# terminal 1 | terminal 2
# |
# run build in watch mode | start application in watch mode
$ npm run build:watch | $ npm run start:dev -- I J # where I and J are the number of update and HTTP calls respectively
# |
# |
# |
# run build | start application
$ npm run build | $ npm start -- I J # where I and J are the number of update and HTTP calls respectively
This application uses Jest framework for unit and integration testing
# to run tests
$ npm test