Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 559 Bytes

File metadata and controls

24 lines (19 loc) · 559 Bytes

TODO

 * olx client
 * select / change config from checkboxes
 * storage (mongo?)
 * cross-posting / mail

usage

Set variables for running it locally with:

export SERVICE_PORT="8000"

go test -v && env CGO_ENABLED=0 GOOS=linux go build -o olx-parser .
docker build -t olx-parser -f ./Dockerfile .
docker run -p 8000:8000 olx-parser

request (will be changed) for debug:

curl --header "Content-Type: application/json" \
        --request POST \
        http://0.0.0.0:8000/adverts -o response-example.json | jq .