How To Begin Building An Application With Ruby On Rails

Cole Tomashot
2 min readAug 3, 2021

So you have a great idea for an app, but you've decided to use Ruby On Rails for part of it and don’t know how to get started. Luckily I can show you how to do that in two very simple steps.

Rails New

To generate the starting point for your Rails application, you simply need to enter “rails new your_app” into the terminal, and assuming you have everything installed correctly, Rails will begin to generate the necessary files for the project. It is worth noting that in the example “your_app” will be the name of your application, so make sure you change this to your preferred name.

Rails S

Now that we have all the files we need to get started, you should check that your project is correctly set up and can connect to the web server. To do this, just use the command “rails s” in your terminal and give the app a second to boot up. Once you see that it is listening to a localhost URL, you’ll know that everything is running and you can check this by visiting the same link. By default, it should be http://localhost:3000, but if you need to later you can also specify a port. When you load the page if you are greeted with the image below, you know you are ready to get to work on your new application! To stop your server simply press “ctrl-c”, and make sure you always do this before closing your project, as this can leave the server running making it much harder for you to shut down later.

You are ready to get started!

--

--