In this demo, I will demostrate the power of Vagrant.
I will be using ubuntu/trusty64
as my starting Vagrant Box, then install NVM and latest stable Node.js.
I've also set up a sharing folder called code
that contains our project files. So we can edit them on our host machine!
$ vagrant up
$ vagrant ssh
By here, you're in your virtual Ubuntu server! With Node.js installed!
Let's run our server!
$ cd code
$ npm install
$ npm start
A good code should pass all tests. To run the tests:
$ npm test
It's that simple!