PageRenderTime 24ms CodeModel.GetById 14ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/deps/webmachine/www/quickstart.html

https://code.google.com/p/zotonic/
HTML | 77 lines | 60 code | 17 blank | 0 comment | 0 complexity | 814097c515f4d65d11a06f737beb667a MD5 | raw file
 1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 2<html xmlns="http://www.w3.org/1999/xhtml">
 3<head>
 4	<meta name="author" content="Basho Technologies" />
 5	<meta name="description" content="getting started quickly with Webmachine" />
 6	<meta name="keywords" content="webmachine http rest web" />
 7    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
 8	<link rel="stylesheet" href="css/style-1c.css" type="text/css" />
 9	<title>getting started quickly with Webmachine</title>
10</head>
11<body>
12	<div id="content">
13		<h1><span class="hr"></span><a href="/">webmachine</a></h1>
14		<ul id="top">
15			<li><a href="/">Home</a></li>
16			<li><a href="http://bitbucket.org/justin/webmachine/">Source Code</a></li>
17                        <li><a href="contact.html">Contact</a></li>
18		</ul>
19		<div id="left">
20<h3>getting started quickly with Webmachine</h3>
21
22
23<p>Make sure that you have a working Erlang/OTP release, R12B5 or later.</p>
24
25<p>Get the webmachine code:</p>
26
27<p><pre>
28hg clone http://bitbucket.org/justin/webmachine/ webmachine-read-only
29</pre></p>
30
31<p>Build webmachine:</p>
32
33<p><pre>
34cd webmachine-read-only
35make
36</pre></p>
37
38<p>Create, build, and start the skeleton resource:</p>
39
40<p><pre>
41./scripts/new_webmachine.erl mywebdemo /tmp
42cd /tmp/mywebdemo
43make
44./start.sh
45</pre></p>
46
47<p>Take a look! Point a web browser at <a href="http://localhost:8000/">http://localhost:8000/</a></p>
48
49<p>To make this resource handle URI paths other than /, add more
50<a href="dispatcher.html">dispatch</a> terms in
51/tmp/mywebdemo/priv/dispatch.conf; to make that resource to more
52interesting things, modify the
53<a href="resources.html">resource</a> itself
54at /tmp/mywebdemo/src/mywebdemo_resource.erl.</p>
55
56<p>To learn how to do more interesting things, check out <a href="example_resources.html">some examples</a> or read <a href="docs.html">more documentation</a>.</p>
57
58
59		</div>
60		<div id="footer">
61
62		</div>
63	</div>
64
65<script type="text/javascript">
66var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
67document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
68</script>
69<script type="text/javascript">
70try {
71var pageTracker = _gat._getTracker("UA-4979965-5");
72pageTracker._trackPageview();
73} catch(err) {}</script>
74
75</body>
76</html>
77