Ruby Ruby Basics Ruby Syntax Variables

Blair Rorani
Blair Rorani
6,658 Points

How do I run a Ruby app?

I know how to run .rb files from Terminal on macOS. What If I made an app in Ruby, where is it intended to be run? Example, I can code macOS apps in Swift and run them on my Mac. I can run Rails apps in my browser. Where do I run Ruby apps apart from Terminal?

2 Answers

Clayton Perszyk
MOD
Clayton Perszyk
Treehouse Moderator 46,123 Points

As stated in this article:

"You can use Ruby just like you would use any other general-purpose scripting language. A few examples would be web applications, web servers, system utilities, database work, backups, parsing, even biology and medicine."

So, Whereas Rails and Swift have a more specific purpose, Ruby can be used to develop a variety of apps and programs.

Blair Rorani
Blair Rorani
6,658 Points

Understood. Thanks Clayton. I guess an example would be, I make a calculator app in rails, is that most likely going to be a web app?

Clayton Perszyk
MOD
Clayton Perszyk
Treehouse Moderator 46,123 Points

Yeah, Rails is a framework specifically for building web apps. It has everything you need to develop a full stack (backend and front end) web app.