/couchbase-v-mongo

An evaluation of Couchbase and MongoDB from a development perspective

Primary LanguageJavaScript

couchbase-v-mongo

An evaluation of Couchbase and MongoDB from a development perspective.

Components

Vagrant

Each box is self contained, meaning it has its own copy of the data, REST server, and UI.

  1. 'mongodb'
  2. 'couchbase'

Node.js

The middle tier, or data access layer, is written in Node.js with Express for the REST API server.

AngularJS

The webapp is built with Angular, and is identical between the two environments. Gotta love REST APIs.

Dependencies

  1. Install Virtualbox: https://www.virtualbox.org/wiki/Downloads

  2. Install Vagrant: http://www.vagrantup.com/downloads.html

  3. Install necessary Vagrant plugins:

$ vagrant plugin install vagrant-hostmanager
$ vagrant plugin install vagrant-cachier
$ vagrant plugin install vagrant-berkshelf
  1. Install ChefDK https://downloads.chef.io/chef-dk/

  2. Install Ansible

$ brew install ansible
  1. Install Node.js Playbook
$ ansible-galaxy install nodesource.node

Setup

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