0
0
Ruby on Railsframework~15 mins

Rails installation and setup - Mini Project: Build & Apply

Choose your learning style9 modes available
Rails installation and setup
📖 Scenario: You want to start a new web project using Ruby on Rails. First, you need to install Rails and create a new Rails application on your computer.
🎯 Goal: Set up Ruby on Rails by installing the Rails gem and creating a new Rails application named myapp.
📋 What You'll Learn
Install the Rails gem version 7.0.0 or higher
Create a new Rails application named myapp
Navigate into the myapp directory
Start the Rails server to verify the setup
💡 Why This Matters
🌍 Real World
Setting up Rails is the first step to building web applications with Ruby on Rails, a popular framework for websites and APIs.
💼 Career
Knowing how to install and start a Rails project is essential for Ruby on Rails developers and web engineers working with this framework.
Progress0 / 4 steps
1
Install Rails gem
Run the command gem install rails -v 7.0.0 in your terminal to install Rails version 7.0.0.
Ruby on Rails
Need a hint?

Use the gem install command followed by rails -v 7.0.0 to install Rails version 7.0.0.

2
Create a new Rails application
Run the command rails new myapp in your terminal to create a new Rails application named myapp.
Ruby on Rails
Need a hint?

Use the rails new command followed by the app name myapp to create the project.

3
Navigate into the application directory
Run the command cd myapp in your terminal to move into the myapp directory.
Ruby on Rails
Need a hint?

Use the cd command to change directory into myapp.

4
Start the Rails server
Run the command bin/rails server in your terminal to start the Rails server and verify the setup.
Ruby on Rails
Need a hint?

Use bin/rails server to start the Rails web server.