Abovacademy

Install Ruby on Rails on Windows

WHAT PROGRAMS DO YOU NEED TO INSTALL TO WORK WITH RUBY ON RAILS?

Before we get acquainted with the installation of Ruby on Rails, let’s understand what programs you need to install to work with Ruby on Rails

  • Ruby(programming language)
  • Node.js(JavaScript library)
  • SQLite3(database)
  • Yarn
  • Rails
  • Gem

After getting acquainted with the programs, we can proceed to the installation of Ruby on Rails in Windows.

Installing Ruby on Rails on Windows

To install Rails on Windows, you need to follow the installation process below and perform them in order.

Install Ruby

  1. To install Ruby, visit this link https://rubyinstaller.org/downloads/
  2. Specify the version that is newer, such as Ruby + Devkit 3.0.2-1 (x64). Note that it can be installed in versions lower than Windows 10.
  3. Entering the downloads package of our computer, click on the Ruby file,
  4. To make sure we have installed it, we write ruby -v in the Windows console.
  5. If it brought the version you installed you can continue, otherwise, you can watch this video

Install Node.js

  1. To install Node.js, visit this link https://nodejs.org/en/download/
  2. Specify the version that is newer, such as Latest LTS Version 18.0 (includes npm 6.14.15). Note that you can not install it in versions lower than Windows 10, so choose 2 versions lower than the latest version
  3. Entering the downloads package of our computer, we click on the file we want to install. In this case js.
  4. To make sure we have installed it, we write node -v in the Windows console.
  5. If brought the version you installed, we continue to work. Otherwise, you can watch this video

Install SQLite3

  1. To install SQLite3, visit this link https://www.sqlite.org/download.html
  2. Download sqlite-tools-win32-x86-3370000.zip  and after opening the file, press Ctrl + A to select all the files, then Ctrl + C to save it, then go to C:/Windows/System32 and press Ctrl + V. You can also install it in versions lower than Windows 10.
  3. To make sure we have installed it, in the Windows console we write: sqlite3 –version
  4. If it brought the version you installed, we continue to work, otherwise, you can watch this video:

Install the Yarn

  1. To install Yarn, open the Windows consol և enter this code: npm install –global yarn
  2. To make sure we have installed it in the Windows console we write yarn –version
  3. If it brought the version you posted, we continue to work, otherwise, you can visit this site https://classic.yarnpkg.com/lang/en/docs/install/#windows-stable

Install the Rails

  1. To install Rails, open the Windows console և enter this code: gem install rails
  2. To make sure we have installed it, we write rails –version in the Windows console
  3. If he brought the version you posted, we continue to work, otherwise, you can visit this site https://guides.rubyonrails.org/v5.0/getting_started.html

Once you have successfully install Ruby, you can get acquainted with it here What is Ruby on Rails

Thank you!

Your submission has been sent.