Skip to content

CPSC 473: Vagrant VM for Node.js and MongoDB development

Notifications You must be signed in to change notification settings

kietnguyen/node-box

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-box

Building a node-box

  1. Install VirtualBox
  2. Install Vagrant
  3. Install Git
  4. (Windows only) Install PuTTY
  5. 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
  6. (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
  7. vagrant up (This may take a while)
  8. Log in
    • Mac and linux: vagrant ssh (UNIX)
    • Windows: See below

Configuring PuTTY on Windows

  1. See Connect to Your Vagrant Virtual Machine with PuTTY for instructions on connecting.
  2. Once you are able to connect successfully, see PuTTY: How to load, save or delete server connection settings to save your connection information.
  3. Finally, to fix the line drawing characters used by NPM, see PuTTY, TMUX and NPM

Shared directories

  • The repository will be shared as /vagrant
  • The shared subdirectory will be symlinked from ~vagrant/shared

Additional configuration details

  • 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

Shutting down

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

About

CPSC 473: Vagrant VM for Node.js and MongoDB development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 85.8%
  • Vim Script 14.2%