In this recipe, we will see how we can use
record to connect our Lift application to a MongoDB database.
Before starting with this recipe, you will need to install MongoDB on your computer. You can download the appropriate installer for your OS from http://www.mongodb.org/downloads, and you can find installation instructions specific to your OS at http://docs.mongodb.org/manual/installation/.
build.sbtfile and add the following dependencies:
"net.liftweb" %% "lift-mongodb" % liftVersion % "compile->default" withSources(), "net.liftweb" %% "lift-mongodb-record" % liftVersion % "compile->default" withSources()
importstatements in the ...