Using Github’s "Atom" IDE To Develop Ruby on Rails Apps

Atom.io was launched in early 2014 by Github. It was their contribution to the woefully under-developed SublimeText providing, which though was an ideal product, suffered from being premium-only and infrequently up to date. Github’s method of open-sourcing the Atom editor was a contemporary tackle the work already executed by Chic.

The Atom.io editor relies on the “Electron” framework – a system designed to make HTML / css based mostly purposes work on native working techniques. Merely, which means the system is ready to function an executable software file with full native capability – internet hosting a NodeJS software within the backend. Not solely does this give an enormous quantity of capability to the system, but additionally means that you can set up any app constructed with it on a spread of units.

To develop Ruby on Rails purposes with Atom.io, you want a number of issues arrange. Firstly, you have to be sure to have a working Ruby set up. As soon as that is in place, you additionally want to make sure you can set up the Rails gem on prime of it. For those who’re in a position to do that, you may then be capable to begin creating RoR purposes – which is the place Atom.io is available in.

To develop a RoR software, you have to initialize “rails” in a listing of your selection. To do that, open the CMD / Bash command immediate and sort “rails new [[app name]]”. It will initialize all the mandatory recordsdata contained in the listing. From this, you are then capable of then run the Rails “server” (“rails s”) which is able to will let you ship and obtain requests to the app from the browser.

From this level, you can use Atom to edit any of the recordsdata required to make your software work. Since Ruby on Rails works on an “MVC” (Mannequin View Controller) programming sample, you have to to create a route, controller motion and look at for any “URL” you want to present to the person. To edit the routes, you possibly can edit config/routes.rb after which add a corresponding controller motion in app/controllers/your_controller.rb.

The primary factor to think about with Atom is the best way during which it is in a position so as to add further packages to assist with growth. To do that, you would be greatest looking the GitHub Atom web site and see any of the potential packages you want to obtain – permitting you to improve the expertise of your system.