React JS version of the calculator.
There's not much to it, just calculate 2 numbers using an operator in between.
What things you need to install the software and how to install them
Node.js 8.12.0
NPM 6.4.1
npm i --save-dev
After that try:
npm run
this will give you all the npm scripts at your disposal such as:
npm run start
that'll get you up and running (hopefully)
Testing can be done via npm scripts:
npm run test
Chai tests the calculator and makes sure it works properly. Easy peesy.
function pressButtons(buttons) {
const value = {};
buttons.forEach(button => {
Object.assign(value, calculate(value, button));
});
// no need to distinguish between null and undefined values
Object.keys(value).forEach(key => {
if (value[key] === null) {
delete value[key];
}
});
return value;
}
Add additional notes about how to deploy this on a live system
- Dropwizard - The web framework used
- Maven - Dependency Management
- ROME - Used to generate RSS Feeds
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Sean Esteva - Initial work - Seangeleno
This project is licensed under the MIT License - see the LICENSE.md file for details
- Inspiration
- etc