Skip to content

Tinkerpop blueprints stack integration plugin for play2 framework

License

Notifications You must be signed in to change notification settings

gwik/play2-tinkerpop-plugin

Repository files navigation

Play 2 Tinkerpop Blueprints graph plugin

A GraphDB plugin for the Play 2 framework using the Tinkerpop blueprints stack.

Installation

sbt

Edit your Play2 project/Build.scala

 import sbt._
 import Keys._
 import PlayProject._

 object ApplicationBuild extends Build {

   val appName         = "MyPlayApp"
   val appVersion      = "1.0-SNAPSHOT"

   val appDependencies = Seq(
       "org.gwikzone" %% "play2-tinkerpop-plugin-orientdb" % "1.0-SNAPSHOT"
   )

   val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).
       dependsOn(uri("git://github.com/gwik/play2-tinkerpop-plugin.git"))

 }

Plugins declaration

Add this to your conf/play.plugins file, create it if it's not there already.

1000:org.gwikzone.play.tinkerpop.blueprints.orientdb.OrientBlueprintPlugin

Instanciate your graph db

package utils

import org.gwikzone.play.tinkerpop.blueprints.orientdb.OrientDB
object GraphDB extends OrientDB

Import GraphDB from this package in your application code. Then if you want to use an other graphDB say neo4j you just need to change the import in this and you're done.

About

Tinkerpop blueprints stack integration plugin for play2 framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages