============
Bootstrap for Node.JS development.
- Git
- Node (latest version, NPM included)
- Supervisor (Node runner, installed globally)
- Redis database
- Simple app.js that serves index.html
- Node app is run automatically with supervisor (watches for file changes)
- Node modules installed by default for app:
- socket.io
- async
- underscore
- redis
-
Install Vagrant and VirtualBox. WARNING: latest VirtualBox 4.2.14 does not work with Vagrant, but previous version 4.2.12 works fine.
-
Add Ubuntu 12.04 i386 box:
vagrant box add precise32 http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-i386-vagrant-disk1.box
-
Add salt plugin:
vagrant plugin install vagrant-salt
-
Checkout project:
git clone git://github.com/nkbt/vagrant-node.git vagrant-node cd vagrant-node
-
You may want to edit
package.json
, add or remove some packages, change application name, etc -
Run vagrant:
vagrant up
-
Go to http://localhost:13000 and open browser console to see messages from server
-
Use
vagrant ssh
to access sandbox. Or just connect with any SSH-client tolocalhost:2222
using namevagrant
and passvagrant