- Clone the repository:
$ git clone https://github.com/kevinjlope/calculator.git
$ cd calculator
- Check if Node.js is installed:
$ node -v
If Node.js is not installed, download and install it from here. This project use Node.js v20.9.0
- Install the packages
$ npm install
$ npm run start:dev
After run the command
$ npm run start:dev
The application run for default in the port 3000. You can use anything client to test the API, postman, thunder client, etc. But this project integrated swagger and if your prefer you can use it. In your preferrer browser paste: http://localhost:3000/api .
In case you don't prefer use swagger in your client(postman, thunder client) paste the next url: http://localhost:3000/math-expression, select the method POST and paste the next body:
{ "expression": "10 * (2 + 5) * 10" }
# unit tests
$ npm run test
Nest is MIT licensed.