DEV Community

Enid Nyatichi
Enid Nyatichi

Posted on • Updated on

My First Full-stack App using Ruby Sinatra

Hello guys I hope you are all doing good.In my journey of becoming a Software Developer, I most recently learnt Ruby Sinatra.
The first thing I did was to set up my environment. This included setting up a database and a web server. I chose to use sqlite for my database and postgresql for the backend. I started by creating an app that would serve as the backend of my react app.

Afterwards, I created a react component that would be used as the front-end of my application.

I then connected these two components together by using React Router's Link component to pass information from one component to another with ease. The final step was adding some styling and formatting to make the UI(User Interface) more appealing.

I must confess that in all the languages that I have learnt this seemed a little bit easier compared to the rest.I quickly fell in love with it and just want to encourage anyone who has been wishing to learn back-end to try it out.The following are some of the advantages of Sinatra:
1.It is simple yet elegant to implement and configure.
2.It is flexible hence can be used to build any kind of application from a small one to a full-scale web application.
3.It is lightweight;when writing a react app there will be no wasted features or unused functions.This means that it uses less memory and runs quicker.
4.It is unbiased hence giving a developer full control over how to best implement their application.

Top comments (0)