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

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

42
0
Using Github's "Atom" IDE To Develop Ruby on Rails Apps

Atom˳io was released in early 2014 by Github˳ It was their contribution to the woefully under-developed SublimeText offering, which although was a great product, suffered from being premium-only and rarely updated˳ Github’s approach of open-sourcing the Atom editor was a fresh take on the work already done by Sublime˳

The Atom˳io editor is based on the “Electron” framework – a system designed to make HTML / css based applications work on native operating systems˳ Simply, this means that the system is able to operate an executable application file with full native capacity – hosting a NodeJS application in the backend˳ Not only does this give a huge amount of capacity to the system, but also allows you to install any app built with it on a range of devices˳

To develop Ruby on Rails applications with Atom˳io, you need several things set up˳ Firstly, you need to make sure you have a working Ruby installation˳ Once this is in place, you also need to ensure you can install the Rails gem on top of it˳ If you’re able to do this, you’ll then be able to start developing RoR applications – which is where Atom˳io comes in˳

To develop a RoR application, you need to initialize “rails” in a directory of your choice˳ To do this, open the CMD / Bash command prompt and type “rails new [[app name]]”˳ This will initialize all the necessary files inside the directory˳ From this, you’re then able to then run the Rails “server” (“rails s”) which will allow you to send and receive requests to the app from the browser˳

From this point, you’ll be able to use Atom to edit any of the files required to make your application work˳ Since Ruby on Rails works on an “MVC” (Model View Controller) programming pattern, you will need to create a route, controller action and view for any “URL” you wish to show to the user˳ To edit the routes, you can edit config/routes˳rb and then add a corresponding controller action in app/controllers/your_controller˳rb˳

The main thing to consider with Atom is the way in which it’s able to add extra packages to aid with development˳ To do this, you’d be best browsing the GitHub Atom website and see any of the potential packages you wish to download – allowing you to upgrade the experience of your system˳



Source by https://ezinearticles˳com/?Using-Githubs-Atom-IDE-To-Develop-Ruby-on-Rails-Apps&id=9667737

Previous articleData Quality Best Practices for Salesforce
Next articleHow Can We Get Off This Rabbit Trail?

LEAVE A REPLY

Please enter your comment!
Please enter your name here