somenugget / mincss

Receive CSS used for initial page display

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DEV Challenge XII

Backend. Standard

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/"] }'

About

Receive CSS used for initial page display


Languages

Language:JavaScript 100.0%