I would like to try OrientDB in a Scala / Play 2.2 project that uses SBT to build. How to integrate OrientDB into this project? Keep in mind that I'm new to all of these technologies (my background is mainly Python / C # / JavaScript), so I could do it with some hands :)
Preferably, OrientDB should be set as a managed dependency, if possible. I also need a good Scala API for the database, if available.
An incorrect code example to connect to the OrientDB server from my application would be cool.
EDIT:
I tried Play with OrientDB Play the plugin, but without success so far. What I did was (according to the README plugin):
cd ~/local/play-2.2.1/git clone git@github.com :ratcashdev/play-with-orientdb.gitcd play-with-orientdb/src- Add
val orientDBVersion = "1.6.4" to src / build.sbt - Change project /build.properties as:
sbt.version=0.13.0 - Change the last line of the /plugins.sbt project to:
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.1") - Delete project /Build.scala (as this caused build errors)
play publish-local- Add
"ratcash.net" % "play-with-orientdb_2.10" % "1.0-SNAPSHOT" to the libraryDependencies setting of my build.sbt file project - Add
val orientDBVersion = "1.6.4" to the build.sbt project file - Edit the project file conf / play.plugins as:
10000:modules.orientdb.ODBPlugin - Add the OrientDB configuration to the conf / application.conf project file.
- Run my project through
play run - Visit localhost: 9000
The last step causes the error page to display the following exception: java.lang.ClassNotFoundException: modules.orientdb.ODBPlugin .
source share