An evaluation of Couchbase and MongoDB from a development perspective.
Each box is self contained, meaning it has its own copy of the data, REST server, and UI.
- 'mongodb'
- 'couchbase'
The middle tier, or data access layer, is written in Node.js with Express for the REST API server.
The webapp is built with Angular, and is identical between the two environments. Gotta love REST APIs.
-
Install Virtualbox: https://www.virtualbox.org/wiki/Downloads
-
Install Vagrant: http://www.vagrantup.com/downloads.html
-
Install necessary Vagrant plugins:
$ vagrant plugin install vagrant-hostmanager
$ vagrant plugin install vagrant-cachier
$ vagrant plugin install vagrant-berkshelf
-
Install ChefDK https://downloads.chef.io/chef-dk/
-
Install Ansible
$ brew install ansible
- Install Node.js Playbook
$ ansible-galaxy install nodesource.node
Run vagrant up
from the root directory
Navigate to couchbase.vagrant:3000 to view the Couchbase app Navigate to mongodb.vagrant:3000 to view the MongoDB app