Skip to content

Commit 91a2e29

Browse files
Update website
1 parent 2271ad0 commit 91a2e29

11 files changed

+1071
-31
lines changed

images/bg_hr.png

943 Bytes
Loading

images/blacktocat.png

1.39 KB
Loading
File renamed without changes.

images/icon_download.png

1.13 KB
Loading

images/sprite_download.png

16.4 KB
Loading

index.html

+169-31
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,189 @@
1+
<!DOCTYPE html>
12
<html>
3+
24
<head>
5+
<meta charset='utf-8' />
6+
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
7+
<meta name="description" content="ReactiveCouchbase is a Reactive Scala driver for Couchbase" />
8+
<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
39
<title>Reactive Couchbase</title>
4-
<link rel="icon" type="image/x-icon" href="favicon.ico">
10+
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
511
<style>
6-
body {
7-
background-color: rgb(238, 238, 239);
12+
.couchbasebody {
813
padding-top: 18%;
914
}
10-
.title {
11-
width: 100%;
12-
height: 100%;
13-
display: block;
14-
top: 0px;
15-
left: 0px;
16-
text-align: center;
15+
.couchbasetitle {
1716
color: rgb(190, 34, 40);
1817
cursor: default;
1918
direction: ltr;
2019
font-family: ff-kievit-web, 'MS UI Gothic', 'MS PGothic', Osaka, Batang, 宋体, SimSun, 微软雅黑, 'Microsoft YaHei', Georgia, 'Times New Roman', Times, sans-serif;
21-
font-size: 38px;
22-
font-style: normal;
23-
font-weight: 600;
2420
}
25-
.title a {
26-
font-size: 18px;
27-
color: #666666;
28-
text-decoration: none;
21+
#header_wrap {
22+
background-color: rgb(190, 34, 40);
23+
}
24+
#footer_wrap {
25+
background-color: rgb(190, 34, 40);
26+
}
27+
body {
28+
background-color: rgb(190, 34, 40);
29+
}
30+
.gist {
31+
margin-top: 20px;
32+
}
33+
.gist table {
34+
margin-bottom: 0px;
35+
font-size: 12px;
36+
border-bottom-color: red;
2937
}
30-
.more {
31-
font-size: 18px;
32-
color: #000000;
38+
.gist .line-pre {
39+
box-shadow: 0 0 0 0;
40+
-moz-box-shadow: 0 0 0 0;
41+
-webkit-box-shadow: 0 0 0 0;
42+
-o-box-shadow: 0 0 0 0;
43+
-ms-box-shadow: 0 0 0 0;
3344
}
34-
.subtitle {
35-
font-size: 35px;
36-
font-family: Verdana;
37-
font-weight: 300;
38-
color: #7F6945;
45+
.gist .gist-meta {
46+
display: none;
3947
}
48+
4049
</style>
4150
</head>
4251
<body>
43-
<a href="http://www.reactivemanifesto.org/"> <img style="border: 0; position: fixed; right: 0; top:0; z-index: 9000" src="http://www.reactivemanifesto.org/images/ribbons/we-are-reactive-red-right.png"> </a>
44-
<div class="title">
45-
Reactive Couchbase<br/><br/>
46-
<a href="https://github.com/ReactiveCouchbase">ReactiveCouchbase on github</a>
47-
<br/><br/>
48-
<div class="more">More soon ...<div>
52+
53+
<a href="http://www.reactivemanifesto.org/">
54+
<img style="border: 0; position: fixed; right:0; top:0; z-index: 9000;margin-top:0px;padding-top:0px;padding-right:0px;box-shadow: 0 0 0 0;-moz-box-shadow: 0 0 0 0;-webkit-box-shadow: 0 0 0 0;-o-box-shadow: 0 0 0 0;-ms-box-shadow: 0 0 0 0;" src="http://www.reactivemanifesto.org/images/ribbons/we-are-reactive-black-right.png">
55+
</a>
56+
57+
<div id="header_wrap" class="outer">
58+
<header class="inner">
59+
<a id="forkme_banner" href="https://github.com/ReactiveCouchbase">View on GitHub</a>
60+
61+
<h1 id="project_title">Reactive Couchbase</h1>
62+
<h3 id="project_tagline">A reactive Scala driver for Couchbase</h3>
63+
64+
<section id="downloads">
65+
<a class="zip_download_link" href="https://github.com/ReactiveCouchbase/repository/raw/master/starterkits/reactivecouchbase-starter-kit.zip" title="Download the starter kit as a .zip file">Download the starter kit as a .zip file</a>
66+
</section>
67+
</header>
68+
</div>
69+
70+
71+
<div id="main_content_wrap" class="outer">
72+
<section id="main_content" class="inner">
73+
<h1>About Reactive Couchbase</h1>
74+
<p>
75+
more soon ...
76+
</p>
77+
<h1>Step By Step Example</h1>
78+
<p>
79+
Let's show a simple use case: print the documents of a bucket.
80+
</p>
81+
<h3>Prerequisites</h3>
82+
<p>
83+
We assume that you got a running Couchbase instance. If not, get the latest Couchbase binaries and install it (<a href="http://www.couchbase.com/download">http://www.couchbase.com/download</a>)
84+
</p>
85+
<h3>Set up your project dependencies</h3>
86+
</p>
87+
ReactiveMongo is available on a private Maven repository. If you use SBT, you just have to edit build.sbt and add the following
88+
<pre><code>resolvers += "ReactiveCouchbase Snapshots" at "https://raw.github.com/ReactiveCouchbase/repository/master/snapshots/"
89+
90+
libraryDependencies ++= Seq(
91+
"org.reactivecouchbase" %% "reactivecouchbase-core" % "0.1-SNAPSHOT"
92+
)</code></pre>
93+
</p>
94+
<h3>Connect to the default bucket</h3>
95+
<p>
96+
You can get a connection to the default bucket like this
97+
<pre><code><span style="color: red">// first import the implicit execution context </span>
98+
<b>import </b>scala.concurrent.ExecutionContext.Implicits.global
99+
<b>import </b>org.reactivecouchbase.ReactiveCouchbaseDriver
100+
101+
object <b>Application</b> extends <b>App</b> {
102+
103+
<span style="color: red">// get a driver instance driver </span>
104+
<b>val </b>driver = ReactiveCouchbaseDriver()
105+
<span style="color: red">// get the default bucket </span>
106+
<b>val </b>bucket = driver.bucket("default")
107+
108+
<span style="color: red">// do something here with the default bucket </span>
109+
110+
<span style="color: red">// shutdown the driver </span>
111+
driver.shutdown()
112+
}</code></pre>
113+
You'll need a application.conf file in the project resources
114+
<pre><code>couchbase {
115+
buckets = [{
116+
host="127.0.0.1"
117+
port="8091"
118+
base="pools"
119+
bucket="default"
120+
user=""
121+
pass=""
122+
timeout="0"
123+
}]
124+
}</code></pre>
125+
<p>
126+
</p>
127+
You can also provide your own ActorSystem, Logging system and configuration programmatically to the driver when you create it.
128+
</p>
129+
<h3>Run a simple query</h3>
130+
<p>
131+
Assuming your default bucket is filled with the beer sample data, let's print all the beers
132+
<pre><code><span style="color: red">// first import the implicit execution context </span>
133+
<b>import </b>scala.concurrent.ExecutionContext.Implicits.global
134+
<b>import </b>org.reactivecouchbase.ReactiveCouchbaseDriver
135+
<span style="color: red">// import the implicit JsObject reader </span>
136+
<b>import </b>org.reactivecouchbase.CouchbaseRWImplicits.documentAsJsObjectReader
137+
<b>import </b>com.couchbase.client.protocol.views.Query
138+
<b>import </b>play.api.libs.iteratee.Iteratee
139+
<b>import </b>scala.concurrent.Future
140+
<b>import </b>play.api.libs.json._
141+
142+
object <b>Application</b> extends <b>App</b> {
143+
144+
<span style="color: red">// get a driver instance driver </span>
145+
<b>val </b>driver = ReactiveCouchbaseDriver()
146+
<span style="color: red">// get the default bucket </span>
147+
<b>val </b>bucket = driver.bucket("default")
148+
149+
<span style="color: red">// search all docs from the view 'brewery_beers' </span>
150+
<span style="color: red">then enumerate it and print each document on the fly </span>
151+
bucket.searchValues[JsObject]("beers", "brewery_beers")
152+
(new Query().setIncludeDocs(true))
153+
.enumerated.apply(Iteratee.foreach { doc =>
154+
println(s"found beer : ${Json.prettyPrint(doc)}")
155+
})
156+
157+
<span style="color: red">// search the whole list of docs from the view 'brewery_beers' </span>
158+
<b>val </b>futureList: Future[List[JsObject]] =
159+
bucket.searchValues[JsObject]("beers", "brewery_beers")
160+
(new Query().setIncludeDocs(true)).toList
161+
<span style="color: red">// when the query is done, run over all the docs and print them </span>
162+
futureList.map { list =>
163+
list.foreach { doc =>
164+
println(s"found beer : ${Json.prettyPrint(doc)}")
165+
}
166+
}
167+
<span style="color: red">// shutdown the driver </span>
168+
driver.shutdown()
169+
}</code></pre>
170+
</p>
171+
<h1>Samples</h1>
172+
<p>
173+
You can find some application samples on <a href="https://github.com/ReactiveCouchbase/ReactiveCouchbase-play/tree/master/samples">ReactiveCouchbase's github</a>
174+
</p>
175+
<h1>Play 2 plugin</h1>
176+
<p>
177+
You can absolutely use ReactiveCouchbase from a Play 2 application. For more information about it, go to the <a href="https://github.com/ReactiveCouchbase/ReactiveCouchbase-play">ReactiveCouchbase-play's github project</a>
178+
</p>
179+
180+
</section>
181+
</div>
182+
183+
<div id="footer_wrap" class="outer">
184+
<footer class="inner">
185+
<p class="copyright">© 2013 – 2014, Mathieu Ancelin & <a href="https://github.com/ReactiveCouchbase/ReactiveCouchbase-core/graphs/contributors">contributors</a></p>
186+
</footer>
49187
</div>
50188
</body>
51189
</html>

index.old.html

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset='utf-8' />
6+
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
7+
<meta name="description" content="ReactiveCouchbase is a Reactive Scala driver for Couchbase" />
8+
<title>Reactive Couchbase</title>
9+
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
10+
<style>
11+
body {
12+
background-color: rgb(238, 238, 239);
13+
padding-top: 18%;
14+
}
15+
.title {
16+
width: 100%;
17+
height: 100%;
18+
display: block;
19+
top: 0px;
20+
left: 0px;
21+
text-align: center;
22+
color: rgb(190, 34, 40);
23+
cursor: default;
24+
direction: ltr;
25+
font-family: ff-kievit-web, 'MS UI Gothic', 'MS PGothic', Osaka, Batang, 宋体, SimSun, 微软雅黑, 'Microsoft YaHei', Georgia, 'Times New Roman', Times, sans-serif;
26+
font-size: 38px;
27+
font-style: normal;
28+
font-weight: 600;
29+
}
30+
.title a {
31+
font-size: 18px;
32+
color: #666666;
33+
text-decoration: none;
34+
}
35+
.more {
36+
font-size: 18px;
37+
color: #000000;
38+
}
39+
.subtitle {
40+
font-size: 35px;
41+
font-family: Verdana;
42+
font-weight: 300;
43+
color: #7F6945;
44+
}
45+
</style>
46+
</head>
47+
<body>
48+
<a href="http://www.reactivemanifesto.org/"> <img style="border: 0; position: fixed; right: 0; top:0; z-index: 9000" src="http://www.reactivemanifesto.org/images/ribbons/we-are-reactive-red-right.png"> </a>
49+
<div class="title">
50+
Reactive Couchbase<br/><br/>
51+
<a href="https://github.com/ReactiveCouchbase">ReactiveCouchbase on github</a>
52+
<br/><br/>
53+
<div class="more">More soon ...<div>
54+
55+
</div>
56+
</body>
57+
</html>

jquery-1.10.2.min.js

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)