Skip to content
altitude edited this page Nov 14, 2014 · 7 revisions

Install Erlang

Make sure that you have a working Erlang/OTP release, see Installing Erlang for information on getting Erlang setup on your system.

Get Webmachine

Get the Webmachine code:

git clone git://github.com/basho/webmachine

Create a Skeleton Resource

Create, build, and start the skeleton resource:

./scripts/new_webmachine.sh mywebdemo /tmp
cd /tmp/mywebdemo
make
./start.sh

Point your web browser at http://localhost:8080 and take a look.

Next Steps

  • Define URI paths for the resource by adding more dispatch terms in dispatch/0 of /tmp/mywebdemo/src/mywebdemo_config.erl; other frameworks refer to these as routes.

  • Change the resource's behavior by modifying /tmp/mywebdemo/src/mywebdemo_resource.erl

  • Check out the demo application.