Skip to content

kevinjlope/calculator

Repository files navigation

Project setup

  1. Clone the repository:
$ git clone https://github.com/kevinjlope/calculator.git
$ cd calculator
  1. 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

  1. Install the packages
$ npm install

Run the project

$ npm run start:dev

Test the Rest API

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 .

swagger

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

Run tests

# unit tests
$ npm run test

License

Nest is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published