
Ruby on Rails or Rails is an open-source web framework written in Ruby. It enables developers to efficiently build server-side rendered web applications through a model-view-controller code structure.
Install build-essential.
Install the developer dependencies.
Install Git and curl if not already installed.
Rails uses the Javascript runtime through Nodejs to build applications through its Asset Pipeline.
Install the latest LTS version of Nodejs.
Verify successful Nodejs installation.
Install Yarn.
Verify successful Yarn installation.
rbenv is a Ruby version manager used to install and manage Ruby environments.
Install rbenv.
This script automatically installs and updates rbenv.
Add rbenv to the path.
Test that rbenv is installed correctly.
Confirm audit results.
Verify PATH is correct by replacing user with your user name.
List the latest stable versions of Ruby.
Install Ruby with the desired version.
Keep in mind, Rails requires Ruby 2.5.0 or greater.
Set global Ruby version.
Confirm installation with similar output.
Install Bundler using gem.
Install Rails using gem.
Confirm successful installation.
Create a new Rails project.
Start Rails server.
Navigate to your server's IP address at port 3000 in a web browser. For example:
You should see a working Rails server response.
0 Comments
Be the first to comment and share your perspective with the community.