latiaobingkuoluo / ruby-course

An introduction to Ruby
https://lab.github.com/everydeveloper/introduction-to-ruby
0 stars 0 forks source link

Set up your environment #1

Closed github-learning-lab[bot] closed 3 years ago

github-learning-lab[bot] commented 3 years ago

Hey there!

Today we will be learning the basics of Ruby. Ruby is a flexible and dynamic language, developed to feel natural and simple (some even call it beautiful💎). It is open source, and widely popular with the Rails framework.

Today, I'm going to guide you through your first Ruby project. First, we will write a program to output "Hello world" (as software developers are known to do). Then, we will learn some ruby methods to collect user input. Lastly, we will display different statements based on their input.

This is an interactive course, where you will be prompted to do something to finish each step. If it takes more than a few seconds for a response, try refreshing your browser.

Leave a comment with your name to continue

latiaobingkuoluo commented 3 years ago

latiao

github-learning-lab[bot] commented 3 years ago

Alright latiao, before we dive into the tutorial, there are a couple of steps to set up our work environment.

Install Ruby

You might not need to install Ruby on your machine if it is already installed. You can figure that out by opening up your command line and typing:

ruby -v

If you see a Ruby version, then you're good to go. If you don't see a Ruby version, then you'll need to install Ruby for your machine.

Check that Git is Installed

You can check if Git is installed in a similar way. Type the following into your command line:

git --version

If you see a Git version, you're all set. If you don't see a Git version, then you'll need to install Git for your operating system.

Clone the Repository

Now that we've got Ruby and Git installed, we're going to clone this repository from GitHub so we can make changes.

Open your console and navigate to the folder you want to work in, then enter:

git clone https://github.com/latiaobingkuoluo/ruby-course.git

You should see a folder called ruby-course on your desktop, and inside that folder you'll see three files:

Install a Text Editor

Most machines come with a basic text editor that you can use to get started, though I recommend installing an editor that is a bit more robust. Some popular ones are Atom, VS Code, and Sublime Text.

With all that installed, we have what we need to begin writing our Ruby program!

Close this issue for the next step

github-learning-lab[bot] commented 3 years ago

Great, you are ready to start coding in Ruby!

Click here to get started.