Simple main class demonstrate crud operations using java mongodb driver.
A helper class is created to do all the operations.
Steps (For Linux)
- Download mongodb - http://www.mongodb.org/downloads
- Unzip to a location where programs exist.
- Create a /data and /data/db directories.
- Give all permissions to these directories.
- Start mongodb using "mongod" command which can be found under MONGODB_HOME/bin.
- Get the project using "git clone" command.
- Import the project to intellij idea and run the main class.