Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (39 sloc) 1.339 kb

Dev setup for Node.js with MongoDB. Based on VirtualBox, Ubuntu 12.04, Vagrant and Chef

Literature & Pre-requisite

Please go thru the following links and setup these tools before proceeding

Setup

vagrant box add precise64 http://files.vagrantup.com/precise64.box
git clone https://github.com/truepattern/nodejs-dev-vbox.git mynodejs
cd mynodejs
vagrant up

Packages

Following softwares are installed to the vbox

  • git
  • nodejs
  • nginx
  • mongodb

Console

  • vagrant ssh

Start

  • vagrant up

Stop

  • vagrant halt

Node.js App

  • The sample app is in 'app' directory
  • ssh to virtualbox
# node is automatically started by upstart and should be running already
ps -aef | grep node
  • go to your host box, browser and try http://localhost:8080
  • nginx runs on port 80 and forwards the site to port 3000 where app runs

Notes

You can use this to bootstrap your node development, or copy the cookbooks and Vagrantfile to your existing node.js setup

License & References

Jump to Line
Something went wrong with that request. Please try again.