Sinatra: A CRUD-E Web Based Interaction!

 At the early start of my project with the Command Line Interface(CLI),  I thought I was always going to use the interface to communicate with the user. It was then interesting to realize that that was not always the case. During my stint with the Sinatra application, The interesting aspect was the way the ruby gems interacted with the web application vis a vis the controller application. It felt kind of magical to see the entire code come to life. the ability to Create, Read, Update, and Delete files or stored data within the application was such a tremendous part of the project.

Gardening was what I grew up learning as a kid while growing up. I was always around various plant types for the early part of my youth. Sometimes I was doing it as a hobby or sometimes as a chore. My mus would always drag me out in the wee hours to either water the plants, move some of the plats from the nurseries to the bigger pots, or I would be involved in grafting different plants especially roses. 

When the opportunity came for me to demonstrate in my Sinatra project the ability to use its tools to create an app, I gravitated towards plants. I must say it took a while for me to narrow it down to roses. At first, I thought of different plants to add to my database using their botanical names alongside their known names, but then I thought that would've been too cumbersome for the project. So roses it was! It was not bad a pick because I could easily narrow it down to its three district types namely: Modern Roses, Old Garden Roses, and Wild Roses. with these three choices, it was going to be easier for the user to update the database with just any of these species.

The app in itself gave the user the ability to create the data, read the contents of the data, also update the data, and lastly delete or destroy the data when created. These functions were performed via the tools created within the Sinatra type that made the work organized and somewhat seamless. There was within the app, the MVC model that was adhered to, the acronym MVC stood for Model, View, and Controller. theses were built-in actions tailored to interact with the backend and frontend of the project. the model parts were used as a sort of plate where the developer will test some form of the code, the controller was the interface between the views which was the interactive part of the application the user worked with.. this entire working of the app made the whole experience all the more worth it.

As I slowly and meticulously tried to piece my project together one thing I can say is, I did learn how valuable, and versatile the ruby app is. hopefully, it gets better as I explore rails and other applications going forward!


Comments

Popular posts from this blog

Blogging!

Rode the RAILS hard!!!