Skip to content

willymateo/expression-resolver-api

Repository files navigation

expression-resolver-api

Run unit tests Run end-to-end tests

This API is capable of resolving basic mathematical expresssions in a string

Project setup

$ npm install

Compile and run the project

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Run tests

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

API documentation

Resolve a mathematical expression in a string

POST /math/resolve

Request - Body

{
  "mathExpression": "10 * (2 + 5) * 10"
}

Response

{
  "result": 700
}

About

This API is capable of resolving basic mathematical expresssions in a string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors