Skip to content

Instantly share code, notes, and snippets.

@georgezim85
Created October 24, 2020 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save georgezim85/73c4597fa05535fa00f34c18c85bc723 to your computer and use it in GitHub Desktop.
Save georgezim85/73c4597fa05535fa00f34c18c85bc723 to your computer and use it in GitHub Desktop.
Rails: Getting started tutorial requisites

Rails guides

Install ruby, sqlite3, node, yarn, Rails

$ # Update cache:
$ sudo apt update

$ # Install ruby:
$ sudo apt install ruby ruby-dev zlib1g-dev -y

$ # Install sqlite3:
$ sudo apt install sqlite3 libsqlite3-dev -y

$ # Install node:
$ sudo apt install nodejs -y

$ # Add yarn repository
$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
$ "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee
$ # Update repository cache
$ sudo apt update
$ # Install yarn:
$ sudo apt install yarn -y

$ # Install Rails:
$ sudo gem install rails
$ sudo gem install bundler

Use bundle info [gemname] to see where a bundled gem is installed.

You can see all of the command line options that the Rails application builder accepts by running rails new -h.

Create a new project

$ # Create a new project
$ rails new blog

$ # Install webpacker
$ cd blog
$ rails webpacker:install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment