forked from webmachine/webmachine
-
Notifications
You must be signed in to change notification settings - Fork 28
Quickstart
altitude edited this page Nov 14, 2014
·
7 revisions
Make sure that you have a working Erlang/OTP release, see Installing Erlang for information on getting Erlang setup on your system.
Get the Webmachine code:
git clone git://github.com/basho/webmachine
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.
-
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.