~clint-fewbar/ubuntu/precise/rabbitmq-server/package-2.7.1

« back to all changes in this revision

Viewing changes to plugins-src/webmachine-wrapper/webmachine-hg/priv/templates/README

  • Committer: Clint Byrum
  • Date: 2012-01-27 19:48:27 UTC
  • mfrom: (0.2.15)
  • Revision ID: clint@ubuntu.com-20120127194827-9a4oooq196pslm54
New upstream release. (LP: #922600)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Project Skeleton for the {{appid}} app.
 
2
 
 
3
You should find in this directory:
 
4
 
 
5
README : this file
 
6
Makefile : simple make commands
 
7
rebar : the Rebar build tool for Erlang applications
 
8
rebar.config : configuration for Rebar
 
9
start.sh : simple startup script for running {{appid}}
 
10
/ebin
 
11
  /{{appid}}.app : the Erlang app specification
 
12
/src
 
13
  /{{appid}}_app.erl : base module for the Erlang application
 
14
  /{{appid}}_sup.erl : OTP supervisor for the application
 
15
  /{{appid}}_resource.erl : a simple example Webmachine resource
 
16
/priv
 
17
  /dispatch.conf : the Webmachine URL-dispatching table
 
18
  /www : a convenient place to put your static web content
 
19
 
 
20
You probably want to do one of a couple of things at this point:
 
21
 
 
22
0. Build the skeleton application:
 
23
   $ make
 
24
   - or -
 
25
   $ ./rebar compile
 
26
 
 
27
1. Start up the skeleton application:
 
28
   $ ./start.sh
 
29
 
 
30
2. Change the basic application:
 
31
   edit src/{{appid}}_resource.erl
 
32
 
 
33
3. Add some new resources:
 
34
   edit src/YOUR_NEW_RESOURCE.erl
 
35
   edit priv/dispatch.conf