Reactive Scala Driver for MongoDB
Asynchronous & Non-Blocking
Setup your project
We assume that you got a running MongoDB instance. If not, get the latest MongoDB binaries and unzip the archive. Then you can launch the database:
$ mkdir /path/to/data $ /path/to/bin/mongod --dbpath /path/to/data
This will start a standalone MongoDB instance that stores its data in the
data directory and listens on the TCP port 27017.
Set up your project dependencies (SBT)
ReactiveMongo is available on Maven Central.
If you use SBT, you just have to edit
build.sbt and add the following:
// you may also want to add the typesafe repository resolvers += "Typesafe repository releases" at "http://repo.typesafe.com/typesafe/releases/" libraryDependencies ++= Seq( "org.reactivemongo" %% "reactivemongo" % "0.11.14" )
Or if you want to be on the bleeding edge using snapshots:
resolvers += "Sonatype Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/" libraryDependencies ++= Seq( "org.reactivemongo" %% "reactivemongo" % "0.12.0-SNAPSHOT" )