Backend With Rails

Michael Salerno
2 min readMar 31, 2022

I always used to think that creating a backend data base was so complicated and difficult. I thought it would be hundreds of lines of code, but then I created a Rails backend API with both my JS and React projects and realized it was pretty easy. Creating the backend was very straight forward and using Scaffold made it 10x easier.

The backend API of an application is the foundation where all the information is stored and grabbed from by the frontend. Without a backend database, the information is not able to be saved and utilized at a later date. Rails makes it rather easy to set up a simple backend using SQL for the database. Creating a simple, or even complex, CRUD app using Rails as your backend can be started within a half hour or so, even quicker if you use Scaffold. Scaffold basically sets up your create, read, update, destroy with that one command, it creates your controllers for you also so you can be up and running within a few minutes.

I used to think that setting up an entire backend API would take hours to do, but it doesn’t. To setup the barebones structure of the backend using Rails and Scaffold only takes maybe 30 minutes tops. After this, its all frontend from there — making sure its connected to the backend and making sure all your fetch requests are going through properly. I am not sure how easy other backend languages are to write and incorporate into a full on application but hopefully they can be somewhat similar to Rails.

Learning Ruby on Rails was enjoyable and allowed me to build multiple CRUD backends for different applications. I am not sure how often Rails is used today, but I will certainly continue to use it for my backend considering the setup time is minimal and the amount that it can do is tremendous.

--

--