Don’t stop now! The next scenario will only take about 10 minutes to complete.

Ruby on Rails Hands_on

Installing nodejs & RVM

To install nodejs package click on the link below

sudo apt-get install nodejs -y

To install RVM package click on the link below

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \curl -sSL https://get.rvm.io | bash -s stable --rails

To start rvm, you need to specify the rvm source directory which will be displayed after you run the curl command. For example, you will see something like this: source /usr/local/rvm/scripts/rvm (do not copy paste)

To check whether all packages are installed use the following commands
  • rails -v
  • ruby -v
  • nodejs -v