capint
5/8/2017 - 2:07 PM

MERN >> Setup

MERN >> Setup

1. Install Ubuntu on VirtualBox
  http://www.psychocats.net/ubuntu/virtualbox

2. Install nvm on Ubuntu
  https://github.com/creationix/nvm
  https://www.liquidweb.com/kb/how-to-install-nvm-node-version-manager-for-node-js-on-ubuntu-12-04-lts/

3. Install node with nvm
  nvm install node

3. Initialize project
  npm init
  
4. Install express with npm
  npm install express --save
  The --save option instructs NPM to include the package inside of the dependencies section of your package.json automatically, thus saving you an additional step (http://stackoverflow.com/questions/19578796/what-is-the-save-option-for-npm-install)
  
5. Install Visual Studio Code
https://code.visualstudio.com/docs/setup/linux#_installation

6. Forward port from host to guest to access the server from host
https://www.howtogeek.com/122641/how-to-forward-ports-to-a-virtual-machine-and-use-it-as-a-server/
http://stackoverflow.com/questions/35090871/how-do-i-access-my-node-js-website-from-an-external-device