aboutsummaryrefslogtreecommitdiffstats
path: root/examples/cookie/README.md
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-09-07 21:58:03 +0200
committerLoïc Hoguin <[email protected]>2013-09-07 21:58:03 +0200
commit340f0a51123b476bca765b87d3f36411e896b5e3 (patch)
treeabeb1a43aa027f3b209c7b42a573b090b1a1deb1 /examples/cookie/README.md
parent2f25c654b02d72a7c0017c20d11ed6a720d640c6 (diff)
downloadcowboy-340f0a51123b476bca765b87d3f36411e896b5e3.tar.gz
cowboy-340f0a51123b476bca765b87d3f36411e896b5e3.tar.bz2
cowboy-340f0a51123b476bca765b87d3f36411e896b5e3.zip
Convert the cookie example to a release
Diffstat (limited to 'examples/cookie/README.md')
-rw-r--r--examples/cookie/README.md27
1 files changed, 15 insertions, 12 deletions
diff --git a/examples/cookie/README.md b/examples/cookie/README.md
index cb6465f..8e1632a 100644
--- a/examples/cookie/README.md
+++ b/examples/cookie/README.md
@@ -1,18 +1,21 @@
-Cowboy Cookie
-=============
+Cookie example
+==============
-To compile this example you need rebar in your PATH.
+To try this example, you need GNU `make`, `git` and
+[relx](https://github.com/erlware/relx) in your PATH.
-Type the following command:
-```
-$ rebar get-deps compile
-```
+To build the example, run the following command:
-You can then start the Erlang node with the following command:
+``` bash
+$ make
```
-./start.sh
+
+To start the release in the foreground:
+
+``` bash
+$ ./_rel/bin/cookie_example console
```
-Then point your browser to the indicated URL. This example allows
-you to use any path you want to try to show that cookies are defined
-site-wide. Try it in your browser!
+Then point your browser at [http://localhost:8080](http://localhost:8080).
+This example allows you to use any path to show that the cookies
+are defined site-wide. Try it!