File: README

package info (click to toggle)
rabbitmq-server 3.3.5-1.1%2Bdeb8u1
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 12,024 kB
  • ctags: 18,432
  • sloc: erlang: 78,203; python: 3,187; xml: 2,843; makefile: 903; sh: 831; java: 660; perl: 64; ruby: 63
file content (43 lines) | stat: -rw-r--r-- 1,247 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
start.sh : simple startup script for running webmachine_demo
/ebin
  /webmachine_demo.app : the Erlang app specification
/src
  /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
/priv
  /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:
   $ ./start.sh

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