U
U
un1t2013-02-08 17:06:34
Scala
un1t, 2013-02-08 17:06:34

How to connect to MongoDB from Scala?

I'm new to Scala (my background is Python). (programming experience on the Scala - 1 day)

I read the instructions here:
api.mongodb.org/scala/casbah/current/setting_up.html

Probably everything is clear for experienced Scala programmers, in my case it's not. I did not find more detailed instructions.

I have SBT installed, and I completed step 1.1.1, but the next one already started having problems.
1) Where to write repositories addresses?..
2) Do I need to install Marven and Ivy or is SBT sufficient?
3) Or maybe the easiest way is to clone a turnip from github and build it. In this case, I would like to understand how to do it.

In general, I need the easiest way to connect to Monga from the Rock. I will be glad to answer questions or links to clear instructions.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xSkyFoXx, 2013-02-08
@xSkyFoXx

reactivemongo.org/ ?

A
asm0dey, 2013-02-10
@asm0dey

Yes, they simply describe all the options for lovers of all build systems. Simple Bad Tool is just an add-on for Ivy. I am a strong opponent of both and suggest using Maven.
Be that as it may, if you prefer SBT, then the repositories in it are added like this:

resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question