Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

KarolGil's avatar

How to run math api on localhost?

Hi,

How to run math api on localhost?

https://github.com/uetchy/math-api

I installed dependencies with the npm install command, but it does not show me mathematical expressions of the type

<img src="/?from=%5Cfrac%7B1%7D%7B%5CGamma(s)%7D%5Cint_%7B0%7D%5E%7B%5Cinfty%7D%5Cfrac%7Bu%5E%7Bs-1%7D%7D%7Be%5E%7Bu%7D-1%7D%5Cmathrm%7Bd%7Du">

I am asking for help because I do not know what I am doing wrong.

0 likes
1 reply
KarolGil's avatar
KarolGil
OP
Best Answer
Level 9
  1. Install the npm install dependencies
  2. Install the yarn install dependencies
  3. Enter the command npm i -G npx ts-node
  4. In index.ts add before app default export lines app.listen (3000) (3000 is the port, it can be any)
  5. Enter the command: npx ts-node index.ts
  6. Check e.g. http://localhost:3000?From=\sum^{N}_{and}x_

Please or to participate in this conversation.