justin / webmachine (http://blog.therestfulway.com/)

A REST-based system for building web applications.

Clone this repository (size: 2.6 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/justin/webmachine/

Getting going right away.

Make sure that you have a working Erlang/OTP release, R12B5 or later.

Get the webmachine code:

1
hg clone http://bitbucket.org/justin/webmachine/ webmachine-read-only

Build webmachine:

1
2
cd webmachine-read-only
make

Create, build, and start the skeleton resource:

1
2
3
4
./scripts/new_webmachine.erl mywebdemo /tmp
cd /tmp/mywebdemo
make
./start.sh

Take a look! Point a web browser at http://localhost:8000/

To make this resource handle URI paths other than /, add more DispatchConfiguration terms in /tmp/mywebdemo/priv/dispatch.conf; to make that resource to more interesting things, modify the resource itself at /tmp/mywebdemo/src/mywebdemo_resource.erl.

To learn how to do more interesting things, read the rest of this wiki.


This revision is from 2009-08-09 14:22