- Install VirtualBox
- Install Vagrant
- Install Git
- Windows: GitHub for Windows or msysgit
- Mac: GitHub for Mac or install via Homebrew
- Linux:
sudo apt-get install git
orsudo yum install git
- (Windows only) Install PuTTY
- Clone this repository
- GUI: Click the Clone in Desktop button on the GitHub page
- Command-Line:
git clone https://github.com/ProfAvery/node-box.git
- (Optionally) Edit
Vagrantfile
- Change
BITNESS
to 64 if you have a 64-bit machine - Increase
MB
to 1024 if your machine has enough free memory
- Change
vagrant up
(This may take a while)- Log in
- Mac and linux:
vagrant ssh
(UNIX) - Windows: See below
- Mac and linux:
- See Connect to Your Vagrant Virtual Machine with PuTTY for instructions on connecting.
- Once you are able to connect successfully, see PuTTY: How to load, save or delete server connection settings to save your connection information.
- Finally, to fix the line drawing characters used by NPM, see PuTTY, TMUX and NPM
- The repository will be shared as
/vagrant
- The
shared
subdirectory will be symlinked from~vagrant/shared
- The username and password are both
vagrant
- Ports will be forwarded from the host machine as follows:
Host port | Guest port |
---|---|
2222 | 22 |
8000 | 80 |
3000 | 3000 |
8080 | 8080 |
When you are finished, you can stop the machine by running vagrant suspend or vagrant halt
If you want to destroy and re-build the machine completely, run
vagrant destroy
but make sure that any data you want to save has been copied to ~vagrant/shared
first