mirror of
https://gitlab.com/wheres-the-tp/server.git
synced 2026-01-25 05:54:56 -06:00
26 lines
649 B
Markdown
26 lines
649 B
Markdown
# aretherecookies
|
|
|
|
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:
|
|
|
|
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
|