aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
Ruby
  • Software Engineering

How To Get Started With A Ruby On Rails Project – A Developer’s Guide

  • Dean Marc
  • January 27, 2024
  • 3 minute read

In this guide you will be able to create a Ruby on Rails application for your development environment. These steps can also be used when deploying an application on a production environment for the setup of the required software. 

Installing the required software

Ubuntu

Execute the following steps and commands to install the required software. 


Partner with aster.cloud
for your next big idea.
Let us know here.



From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.

System update and required system libraries

sudo apt update
sudo apt upgrade -y

sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev

ASDF

Is a version management tool. Which can be used to manage softwares like Ruby and Node.

cd
git clone https://github.com/excid3/asdf.git ~/.asdf
echo '. "$HOME/.asdf/asdf.sh"' >> ~/.bashrc
echo '. "$HOME/.asdf/completions/asdf.bash"' >> ~/.bashrc
echo 'legacy_version_file = yes' >> ~/.asdfrc
echo 'export EDITOR="code --wait"' >> ~/.bashrc
exec $SHELL

Ruby

asdf plugin add ruby

asdf install ruby 3.3.0
asdf global ruby 3.3.0

# Update to the latest Rubygems version
gem update --system

Verify that ruby is installed by checking where it is located and the version installed. 

which ruby
#=> /home/username/.asdf/shims/ruby

ruby -v
#=> 3.3.0

NodeJS

asdf plugin add nodejs

asdf install nodejs 20.10.0
asdf global nodejs 20.10.0

# Install yarn for Rails jsbundling/cssbundling or webpacker
npm install -g yarn

Verify that Node has been installed by checking where it is located and the installed version.

which node
node -v

Rails

gem install rails -v 7.1.2

Check the version installed

rails -v

Mac

Open a terminal and run the following steps.

Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

ASDF

Is a version management tool. Which can be used to manage software like Ruby and Node.

cd
git clone https://github.com/excid3/asdf.git ~/.asdf
echo '. "$HOME/.asdf/asdf.sh"' >> ~/.zshrc
echo '. "$HOME/.asdf/completions/asdf.bash"' >> ~/.zshrc
echo 'legacy_version_file = yes' >> ~/.asdfrc
exec $SHELL

Ruby 

asdf plugin add ruby

asdf install ruby 3.3.0
asdf global ruby 3.3.0

# Update to the latest Rubygems version
gem update --system

NodeJS

asdf plugin add nodejs

asdf install nodejs 20.10.0
asdf global nodejs 20.10.0

# Install yarn for Rails jsbundling/cssbundling or webpacker
npm install -g yarn

Verify that Node has been installed by checking where it is located and the installed version.

which node

node -v

Rails

gem install rails -v 7.1.2

Check the version installed

rails -v

Windows

To run the necessary software, they can be run by installing a Linux subsystem in the Windows environment.

Read More  How-To: Deploy Python Flask applications using NGINX and uWSGI - Deployment (Part 3 of 3)

On a power shell run the following commands.

01: Create a new project using the rails command

wsl --install -d Ubuntu

02:  Reboot the computer after the installation.

03: Follow the instructions from the Ubuntu steps.

System update and required system libraries

sudo apt update

sudo apt upgrade -y

sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev

ASDF

Is a version management tool. Which can be used to manage softwares like Ruby and Node.

cd
git clone https://github.com/excid3/asdf.git ~/.asdf
echo '. "$HOME/.asdf/asdf.sh"' >> ~/.bashrc
echo '. "$HOME/.asdf/completions/asdf.bash"' >> ~/.bashrc
echo 'legacy_version_file = yes' >> ~/.asdfrc
echo 'export EDITOR="code --wait"' >> ~/.bashrc
exec $SHELL

Ruby 

Note: This process takes some time to be completed.

asdf plugin add ruby
asdf install ruby 3.3.0
asdf global ruby 3.3.0

# Update to the latest Rubygems version
gem update --system

Verify that ruby is installed by checking where it is located and the version installed. 

which ruby#=> /home/username/.asdf/shims/ruby
ruby -v#=> 3.3.0

NodeJS

asdf plugin add nodejs

asdf install nodejs 20.10.0
asdf global nodejs 20.10.0

# Install yarn for Rails jsbundling/cssbundling or webpacker
npm install -g yarn

Verify that Node has been installed by checking where it is located and the installed version.

which node

node -v

Rails

gem install rails -v 7.1.2

Check the version installed

rails -v

Starting a new project

01. Create a new project using the rails command

rails new my-rails-project

02. Navigate to the new project

cd my-rails-project

03. Create the database. Note that since we did not specify what database during the creation of the project, this defaults to SQLite.

rails db:create

04. Run the rails server

rails server

05. Open the following URL on a browser.

http://127.0.0.1:/3000

or via cURL inside a terminal

curl http://127.0.0.1:/3000
Ruby on Rails 7.1.3

For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

Dean Marc

Part of the more nomadic tribe of humanity, Dean believes a boat anchored ashore, while safe, is a tragedy, as this denies the boat its purpose. Dean normally works as a strategist, advisor, operator, mentor, coder, and janitor for several technology companies, open-source communities, and startups. Otherwise, he's on a hunt for some good bean or leaf to enjoy a good read on some newly (re)discovered city or walking roads less taken with his little one.

Related Topics
  • Programming
  • Ruby
  • Ruby on Rails
  • Tutorial
You May Also Like
View Post
  • Software Engineering
  • Technology

Claude 3.7 Sonnet and Claude Code

  • February 25, 2025
View Post
  • Engineering
  • Software Engineering

This Month in Julia World

  • January 17, 2025
View Post
  • Engineering
  • Software Engineering

Google Summer of Code 2025 is here!

  • January 17, 2025
View Post
  • Software Engineering

5 Books Every Beginner Programmer Should Read

  • July 25, 2024
View Post
  • Engineering
  • Software Engineering

5 Ways Platform Engineers Can Help Developers Create Winning APIs

  • January 25, 2024
Clouds
View Post
  • Cloud-Native
  • Platforms
  • Software Engineering

Microsoft Releases Azure Migrate Assessment Tool For .NET Application

  • January 14, 2024
View Post
  • Software Engineering
  • Technology

It’s Time For Developers And Enterprises To Build With Gemini Pro

  • December 21, 2023
Code | Software
View Post
  • Engineering
  • Software Engineering

Expanded Legal Protections And Improvements To Our API

  • December 19, 2023

Stay Connected!
LATEST
  • 1
    Just make it scale: An Aurora DSQL story
    • May 29, 2025
  • 2
    Reliance on US tech providers is making IT leaders skittish
    • May 28, 2025
  • Examine the 4 types of edge computing, with examples
    • May 28, 2025
  • AI and private cloud: 2 lessons from Dell Tech World 2025
    • May 28, 2025
  • 5
    TD Synnex named as UK distributor for Cohesity
    • May 28, 2025
  • Weigh these 6 enterprise advantages of storage as a service
    • May 28, 2025
  • 7
    Broadcom’s ‘harsh’ VMware contracts are costing customers up to 1,500% more
    • May 28, 2025
  • 8
    Pulsant targets partner diversity with new IaaS solution
    • May 23, 2025
  • 9
    Growing AI workloads are causing hybrid cloud headaches
    • May 23, 2025
  • Gemma 3n 10
    Announcing Gemma 3n preview: powerful, efficient, mobile-first AI
    • May 22, 2025
about
Hello World!

We are aster.cloud. We’re created by programmers for programmers.

Our site aims to provide guides, programming tips, reviews, and interesting materials for tech people and those who want to learn in general.

We would like to hear from you.

If you have any feedback, enquiries, or sponsorship request, kindly reach out to us at:

[email protected]
Most Popular
  • 1
    Cloud adoption isn’t all it’s cut out to be as enterprises report growing dissatisfaction
    • May 15, 2025
  • 2
    Hybrid cloud is complicated – Red Hat’s new AI assistant wants to solve that
    • May 20, 2025
  • 3
    Google is getting serious on cloud sovereignty
    • May 22, 2025
  • oracle-ibm 4
    Google Cloud and Philips Collaborate to Drive Consumer Marketing Innovation and Transform Digital Asset Management with AI
    • May 20, 2025
  • notta-ai-header 5
    Notta vs Fireflies: Which AI Transcription Tool Deserves Your Attention in 2025?
    • May 16, 2025
  • /
  • Technology
  • Tools
  • About
  • Contact Us

Input your search keywords and press Enter.