temp_conversion

Temperature Conversion Microservice

This microservice uses a REST API, NodeJS, and Express to convert temperatures from Fahrenheit to Celsius, Fahrenheit to Kelvin, Celsius to Fahrenheit, Celsius to Kelvin, Kelvin to Fahrenheit, and Kelvin to Celsius.

This simple microservice converts temperatures as descibed above by entering a value, a temperature unit (F, C, or K) and choosing which unit you want to convert to. When you click the submit button the server.js file writes the inputs into a file called temperature.txt. Then by running temp_conversion.js the temperature conversion will take place and the file will write the value of the conversion into the temperature.txt file.

Server Runs On: localhost:3000

UML Diagram: image

Running the Program:

Download the zip file and extract all files

Open the main folder in vscode (or similar) and open a terminal

Installation Instructions:

npm install run node server.js

-the server is running on localhost:3000

open localhost:3000