To run project run the following commands.
docker-compose build
docker-compose run app npm i
docker-compose up
In console you will see Listening on port 3000
Now you can send POST request to http://localhost:3000.
Request must have header Content-Type: application/json
and body with following structure:
{
"urls": [
"https://prettier.io/",
"https://codeguida.com/"
]
}
cURL example:
curl -X POST \
http://localhost:3000 \
-H 'Content-Type: application/json' \
-d '{ "urls": ["https://prettier.io/", "https://codeguida.com/"] }'