Make sure to install the following first before proceeding:

1. Ruby -

2. Node js -

3. Yarn -

4. Git -

Confirm installation

  • Ruby has packages called gems. These packages are in 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.