node.js tutorial: API calculator using Swagger

So let’s start the tutorial!!

mkdir calculatorSwagger
cd calculatorSwagger
npm init
npm install express
npm install swagger-ui-express --save
touch index.js
touch swagger.json
node index.js

And test the operations

Sum operation
Subtraction operation
Multiplication operation
Division operation

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Afonso Antunes

Afonso Antunes

Finalist student in Computer Engineering