Make sure to install the following first before proceeding:

1. Ruby - https://rubyinstaller.org

2. Node js - https://nodejs.org/en/

3. Yarn - https://classic.yarnpkg.com/en/docs/install#windows-stable

4. Git - https://git-scm.com/downloads

Confirm installation

  • Ruby has packages called gems. These packages are in https://rubygems.org. We can download and use each ruby gem instead of re-writing the code from scratch. Rails is a gem itself.

Execute gem install bundler

  • Sqlite is the default database of rails. To install sqlite, execute gem install sqlite3

  •  Let’s install webpacker gem. Webpack is the JavaScript bundler for Rails. It uses to manage our js assets.

  • Then install rails by executing gem install rails

  • Now let’s create a new rails application.

  • Go to your application, cd rails_app in my case and execute rails server.