REST server that feeds the mobile-ui
Find a file
2020-05-31 15:43:26 -05:00
scripts wip converting to products from scrapers 2020-05-31 15:43:26 -05:00
src/aretherecookies wip converting to products from scrapers 2020-05-31 15:43:26 -05:00
test/aretherecookies support ordering and filtering from request body 2017-11-05 13:35:30 -06:00
.gitignore require facebook auth for updating quantities 2018-01-27 17:09:59 -06:00
Procfile move app config to separate module with main 2017-10-30 20:34:16 -05:00
project.clj wip converting to products from scrapers 2020-05-31 15:43:26 -05:00
README.md require facebook auth for updating quantities 2018-01-27 17:09:59 -06:00
sample-food-item-post.json quantity endpoint 2017-11-26 19:46:55 -06:00
sample-quantity-post.json quantity endpoint 2017-11-26 19:46:55 -06:00
sample.html wip converting to products from scrapers 2020-05-31 15:43:26 -05:00

aretherecookies

the server that knows where the cookies are

Prerequisites

You will need Leiningen 2.0.0 or above installed.

Running

To start a web server for the application, run:

lein ring server-headless

To test a request/response, run:

curl --data @sample-food-item-post.json \
    --header "Content-Type: application/json" \
    http://localhost:3000/fooditems

curl --data @sample-quantity-post.json \
    --header "Content-Type: application/json" \
    --header "authorization: facebook-token <paste fb token>" \
    http://localhost:3000/quantity