This repo is the server.
It's a NodeJS project.
Formatting & code style are enforced by Eslint & Prettier.
Server uses the web framework ExpressJS.
The exercise is a two-part exercise and therefore there is two branches in that repo.
This branch is the first part and corresponds to the Font-End (converter-client) repo main branch.
In order to use this project:
Clone this repo and then...
npm install
npm start
By default server will be up & running at http://localhost:5000/rest/converter. Hot reload and watch for changes are made through Nodemon.
npm test
This part uses the testing framework Jest.
# POST /
curl -X POST \
-H "Content-Type: application/json" \
-d '{"input": 1}'\
-s http://localhost:5000/rest/converter/
RESPONSE
{
"I"
}