Tech Demo | Step 3 – Set up Ruby

1. Install Ruby

Install Ruby v2.6.6. For this demo, we install it into this folder, but you can use any other folder.
 
C:/Ruby26-x64
 
Modify your windows path to include the following folder. For Windows, this is in control panel > System and Security > System, then click on Advanced system settings in the left panel, then button Environment Variables… at the bottom of the System Properties window.
Modify the Path variable for your user, and add the text below, ensuring you have a semi-colon separating each path element.
 
C:/Ruby26-x64/bin
 
Test that this worked by checking the Ruby version number from another folder
 
C:files/techdemo/>ruby -v
ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]
 
If you see the version number appear then you’ve installed Ruby successfully.
 
 

2. Install Ruby Gems

We use a number of 3rd party libraries for this tech demo, and so will use the ‘gem install’ command to download and install these. Run the following commands, each of which may take a few seconds or a minute or more to run. Just be patient. It doesn’t matter what folder you run these commands from.

c:/files/techdemo>gem install sinatra
c:/files/techdemo>gem install sinatra-reloader
c:/files/techdemo>gem install mongo
c:/files/techdemo>gem install restart
c:/files/techdemo>gem install wdm

Next step … Set up AIM