In this blog, we have explained how easily we can connect with Couchbase, store and fetch data using scala through an example.
Tools and technologies used :
Couchbase Server 4.0 Beta
Please follow below instructions to use this example:-
1) Install and configure Couchbase
a) Download the couchbase server from here.
b) If you are using ubuntu, then Install the package using the dpkg command as a privileged user under sudo. For example:
c) Get Couchbase Server up and running quickly.
d) You can configure your server using the instructions given here.
2) Set up build.sbt
Connect with Couchbase using CouchbaseCluster
5) Write store and fetch method to get data from Couchbase
6) Go to http://localhost:8091/ and create a bucket “person”
7) Now run
8) Now go back to http://localhost:8091/, you will able to see person data in JSON format.
You can find complete source code here https://github.com/knoldus/scala-couchbase
5 thoughts on “Easiest Way to connect with Couchbase using Scala1 min read”
Reblogged this on himanshu2014.
Reblogged this on knoldernarayan.
Reblogged this on Play!ng with Scala.
Reblogged this on sandeepknol.
Reblogged this on aseemmishra011.
Comments are closed.