Write a frontend which uses the included calculator API for basic operations: division, multiplication, addition and subtraction (the documentation can be found below this section). No part of the calculation should be done on the frontend. It should also be possible to use the previous operation's result in the next calculation.
- Fork and change this repository or create a whole new one
- Send us a link to your solution (with instructions on how to run it locally)
It can be hosted statically or server rendered. Use whatever Javascript technology you feel will be most effective.
- Simple, user friendly interface (Minimal design)
- Concise code that is highly readable
- Understandable for juniors
- Shows a clever use of fundamentals for more experienced developers
Calculator as a service ➗✖️➕➖
git clone https://github.com/madeagency/node-server-calc.git
npm install
npm start
npm run build; npm run serve
POST to /
with the following parameters:
{
operation: '*', // valid options are '/', '*', '+', '-'
number1: 81, // any integer
number2: 12 // any integer
}
- or -
GET /:operation/:number1/:number2
:operation
can be one of divide
, multiply
, add
or subtract
npm test
Note: see requirements
- Written in
Babel
- Uses
express
andbody-parser
npm start
usesnodemon
npm test
usesbabel-core
which needs to be installed with globally
Node Server Calculator is © 2016 MADE Code PTY Ltd. It is free software, and may be redistributed under the terms specified in the LICENSE file.
Node Server Calculator was created and is maintained MADE Agency PTY Ltd.
We love open source software. See our Github Profile for more.
We're always looking for talented people who love programming. Get in touch with us.