Skip to content

dkcwd/vagrant-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-node

============

Bootstrap for Node.JS development.

You get:

  • 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

Installation

  1. Install Vagrant and VirtualBox. WARNING: latest VirtualBox 4.2.14 does not work with Vagrant, but previous version 4.2.12 works fine.

  2. 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
    
  3. Add salt plugin:

     vagrant plugin install vagrant-salt
    
  4. Checkout project:

     git clone git://github.com/nkbt/vagrant-node.git vagrant-node
     cd vagrant-node
    
  5. You may want to edit package.json, add or remove some packages, change application name, etc

  6. Run vagrant:

     vagrant up
    
  7. Go to http://localhost:13000 and open browser console to see messages from server

  8. Use vagrant ssh to access sandbox. Or just connect with any SSH-client to localhost:2222 using name vagrant and pass vagrant

About

Bootstrap for Node development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scheme 46.7%
  • JavaScript 36.8%
  • Ruby 16.5%