Easiest Way to Implement JOINs in MongoDB 2.4

Reading Time: 2 minutes Last year, I wrote a blog to implement JOINs in MongoDB. But this solution was applicable only for versions below Mongo 2.4. According to the release log of 2.4, this feature is removed. We could not use another collection on map reduce, which is invoked against a particular collection. Earlier it was permitted. MongoDB is a no-SQL database and doesn’t support joins. But if you Continue Reading

A Simple Login Application in Node.js and MongoDB

Reading Time: < 1 minute Node.js, a software platform, built on google chrome runtime. It uses v8, the same run time environment, that google chrome uses. It is one of the best plateform to easily build scalable network applications(especially server-side). We have created Node.js Login Template with a nice User Interface. If you want to use Node.js as plateform and MongoDB as Database then this demo project can be used Continue Reading

Play Framework 2.0: Ajax Calling Using Javascript Routing in Scala

Reading Time: 3 minutes Continuing our series on Play Framework, in this blog we’ll learn How to make Ajax call in play using jsRoutes.We have already covered design forms in Play2.0 using Scala and Mongodb in the past. Play2.0 introduces a powerful feature JavascriptRouter which helps us in making Ajax call.The play router is able to generate JavaScript code to handle routing from JavaScript running client side back to Continue Reading

Integrate Github Repo with Travis CI For Scala Play2.0 and MongoDB Project

Reading Time: 2 minutes Travis CI is a hosted, distributed  continuous integration service used to build and test projects hosted at  GitHub for the open source community. It supports building software in numerous languages, including Ruby, JavaScript, Java, Scala, PHP, Haskell and Erlang. A Travis worker comes with a good amount of services you might depend on, including MySQL, PostgreSQL, MongoDB, Redis, CouchDB, RabbitMQ, memcached and others. Hosting your project Continue Reading

Design Forms In Play2.0 using Scala and Mongodb

Reading Time: 2 minutes The package contains several helpers to handle HTTP form data submission and validation. In This blog we would learn how to design forms with validations in play2.0 using scala and how to communicate  with database using mongodb. Step 1: Create New Project in play2.0 lets say FormDemoInPlay Step 2: Dependency for Mongodb In Build.scala [sourcecode language=”scala” wraplines=”false” collapse=”false”] "com.novus" %% "salat" % "1.9.1" [/sourcecode] Step 3: Continue Reading

Working with Play framework using Scala and MongoDB

Reading Time: 2 minutes Scala : Scala is a general purpose programming language designed to express common programming patterns in a concise, elegant, and type-safe way. More… Play Framework : Play 2.0 is a high-productivity Scala web application framework that integrates the components and APIs you need for modern web application development. Play is based on a lightweight, stateless, web-friendly architecture. More… MongoDB : MongoDB is a scalable, high-performance, Continue Reading

Using GridFS within Scala to store large files in MongoDB

Reading Time: < 1 minute GridFS is a specification for storing large files in MongoDB. Some of the features of GridFS are : * GridFS tends to handle large numbers of files better than many file systems. * Query Support is good. * If you have certain files that change a lot then it makes sense to store them in GridFS so you can modify them in one place and Continue Reading

Using MongoDB in Scala with Salat

Reading Time: 2 minutes In our last post, we had seen how easily we could access MongoDB with the Casbah driver. In this post, we would have a sneak peak at Salat. Salat is a bidirectional, serialization library which helps us work with MongoDB’s DBObject. To quicly get started with Salat, you would need to include the following dependency in your Build.scala We would also need the dependency for Continue Reading

Getting Started with MongoDB using Scala

Reading Time: 3 minutes MongoDB is a document oriented NoSQL database which has gained tremendous popularity on account of its performance and scalability characteristics. It positions itself in the sweet spot near RDBMS which provide depth of functionality and memcache for scalability and performance characteristics. In this post, we would look at connecting with MongoDB running on the local system with a Scala client. To install MongoDB, follow the Continue Reading