2017-10-20 23:23:05 -05:00
|
|
|
# aretherecookies
|
2017-10-14 22:04:44 -05:00
|
|
|
|
|
|
|
|
the server that knows where the cookies are
|
|
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
|
|
You will need [Leiningen][] 2.0.0 or above installed.
|
|
|
|
|
|
|
|
|
|
[leiningen]: https://github.com/technomancy/leiningen
|
|
|
|
|
|
|
|
|
|
## Running
|
|
|
|
|
|
|
|
|
|
To start a web server for the application, run:
|
|
|
|
|
|
|
|
|
|
lein ring server-headless
|
|
|
|
|
|
|
|
|
|
To test a request/response, run:
|
|
|
|
|
|
2017-11-26 19:46:55 -06:00
|
|
|
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" http://localhost:3000/quantity
|