Skip to content

Latest commit

 

History

History
 
 

setup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Installation

One of the following ways can used to install Ruby and RoR

Note - If you are unable to install Ruby due to some reason, you can still participate in bootcamp with the help of GitHub codespaces.

Once you have setup a development environment using one of the above methods, you should have rvm, node and yarn installed. You can verify your installation with the following commands.

rvm --version
node --version # >= v16
yarn --version  # >= 1.22.19

RVM

RVM allows you to easily install, manage and work with multiple ruby environments.

  • Install Ruby

    https://rvm.io/rubies/installing - Here you can determine which Ruby version is compatible with your system.

    Once you've identified the version, use the following commands to install Ruby (replace 3.0.5 with the version you're installing).

rvm install ruby-3.0.5
rvm --default use 3.0.5
  • Create and use a gemset week<n> where n is the session number.
rvm gemset create week_2
rvm use 3.0.5@week_2

A gemset is an isolated ruby setup. For example, you can isolate two projects using Rails 5 and Rails 6 from each other using a gemset. NOTE: Always switch to the appropriate gemset when working on a project. You can use a project rvmrc to automate this process.

  • Install Bundler (2.2.33) and Rails (7.0.4)
gem install bundler --version 2.2.33
gem install rails --version 7.0.4

If you encounter any issues with the specified versions of Bundler or Rails, try downloading the latest versions.