mozilla/fxa-auth-server — pull request #371 by dannycoates (2013-12-04 23:20:28+00:00)
Title: first stab at a vagrant setup

This is a very basic start on a vagrant environment.

To try it out first install [virtualbox](https://www.virtualbox.org/wiki/Downloads) and [vagrant](http://docs.vagrantup.com/v2/installation/index.html).

Then from the project root:

* optionally `vagrant plugin install vagrant-vbguest`
* this will keep the virtualbox additions up to date.
* `vagrant up`
* first run will install all the dependencies. It may take some time.
* `vagrant ssh`
* you should now be logged into the vm
* `cd /vagrant`
* this is a shared folder of the project root with the host
* `npm rebuild`
* rebuilds the native node modules for linux
* `npm test`
* all tests should pass
* `IP_ADDRESS=0.0.0.0 npm start`
* The auth server running in the vm is now accessible from the host at http://127.0.0.1:9000

Unfortunately, anytime you switch running between the host and vm you'll need to `npm rebuild`.

Its not all that useful yet, but I hope to make this like a mini-stack for the whole system - soup to nuts.