Created: 2012-03-25 00:53
Updated: 2013-10-30 09:47

This is a Vagrant file and set of Chef recipes for building a basic node development environment. If you're not familiar with Vagrant, read more about it at

To get this to work, you must have VirtualBox (> 4.1.0) and Vagrant (> 1.0) installed. Installers for VirtualBox are available at, and installers for Vagrant are available at

Once you have the pre-requisites installed, simply open a terminal and add the base box:

vagrant box add base

Next, clone this repository

git clone my_project

Finally, change to your new project directory and start your VM:

cd my_project
vagrant up

After a few minutes, you should have a virtual dev environment with node, npm, mongodb and redis. The app folder is shared, and port 3000 on the VM is forwarded to port 3000 on the localhost. This is all customizable in the Vagrantfile.

You can test out your environment by ssh'ing into your environment and running the sample script:

vagrant ssh
cd app
node server.js

Next open localhost:3000 in your web browser. If everything worked correctly, you should see 'Hello World'

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more