DEPRECATED Simple Node.js Development VM using Vagrant + VirtualBox + Ansible
This project aims to make spinning up a simple local Node.js test/development environment incredibly quick and easy, and to introduce new developers to the wonderful world of Node.js development on local virtual machines.
It will install the following on a CentOS 6.4 linux VM:
It should take 5-10 minutes to build or rebuild the VM from scratch on a decent broadband connection.
Note for Windows users: This guide assumes you're on a Mac or Linux host. Windows support may be added when I get a little more time; the main difference is Ansible needs to be bootstrapped from within the VM after it's created. See JJG-Ansible-Windows for more information.
Vagrantfile
and this REAMDE file).vagrant up
, and let Vagrant do its magic.Note: If there are any errors during the course of running vagrant up
, and it drops you back to your command prompt, just run vagrant provision
to continue building the VM from where you left off. If there are still errors after doing this a few times, post an issue to this project's issue queue on GitHub with the error.
192.168.55.55 nodejs.dev
so you can connect to the VM.vagrant halt
in the Terminal in the same folder that has the Vagrantfile
. To destroy it completely (if you want to save a little disk space, or want to rebuild it from scratch with vagrant up
again), type in vagrant destroy
.Jeff Geerling created this project in 2014 for easier local Node.js development. This project, and others like it, are also featured as examples in Jeff's book, Ansible for DevOps.