Skip to content
This repository
tag: 1.9.3

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 priv bringing demo app up to date November 02, 2010
Octocat-spinner-32 src
Octocat-spinner-32 Makefile
Octocat-spinner-32 README Update demo app: rebar deps, ensure inets is running, improve README November 21, 2012
Octocat-spinner-32 rebar.config
Project Skeleton for the webmachine_demo app.

You should find in this directory:

README : this file
Makefile : simple make commands
rebar : the Rebar build tool for Erlang applications
rebar.config : configuration for Rebar : simple startup script for running webmachine_demo
  / : the Erlang app specification
  /webmachine_demo_app.erl : base module for the Erlang application
  /webmachine_demo_sup.erl : OTP supervisor for the application
  /webmachine_demo_resource.erl : a simple example Webmachine resource
  /dispatch.conf : the Webmachine URL-dispatching table
  /www : a convenient place to put your static web content

You probably want to do one of a couple of things at this point:

0. Build the skeleton application:
   $ make
   - or -
   $ ./rebar compile

1. Start up the skeleton application:
   $ ./

2. Test the basic application: 
   Visit http://localhost:8000/demo

3. Change the basic application:
   edit src/webmachine_demo_resource.erl

4. Test the filesystem resource:
   $ mkdir /tmp/fs
   $ echo "Hello World." > /tmp/fs/demo.txt
   Visit http://localhost:8000/fs/demo.txt

5. Add some new resources:
   edit src/YOUR_NEW_RESOURCE.erl
   edit priv/dispatch.conf
Something went wrong with that request. Please try again.