Fly Me to the Moon: Sinatra with Ruby will take you places!

Fly Me to the Moon: Sinatra with Ruby will take you places!

Hello, readers! I am back with some more coverage of my projects for Flatiron Schools. This article will be discussing my first try at creating a full-stack web application using Ruby and Sinatra!

Sinatra? Isn’t that a singer?

While you are not wrong in recognizing Sinatra as the singer, however, the Sinatra we’ll be talking about is the DSL(domain specific language) that’s implemented on top of Ruby and Rack, similar to a lightweight version of Rails. Sinatra is designed to simple and easy to get started creating web applications from the ground up with minimal efforts.

Essentially, Sinatra is Ruby Gem which speeds up the process of creating web apps considerably. It is really effective in the methods it uses for working with nested directories.

Sinatra & Corneal what is not to love?

I have to shout-out a special Sinatra skeleton that creates the basic file structures for a creating a quick web application. Corneal is literally a life save that takes out all the intitial tedious work that is related towards creating a basic application. Corneal will set up a file structure in this manner:

Directory structure:

├── config.ru
├── Gemfile
├── Gemfile.lock
├── Rakefile
├── README
├── app
│   ├── controllers
│   │   └── application_controller.rb
│   ├── models
│   └── views
│       ├── layout.erb
│       └── welcome.erb
├── config
│   ├── initializers
│   └── environment.rb
├── db
│   └── migrate
├── lib
│   └── .gitkeep
└── public
|   ├── images
|   ├── javascripts
|   └── stylesheets
|       └── main.css
└── spec
    ├── application_controller_spec.rb
    └── spec_helper.rb

What I found to be especially helpful was that Corneal comes with some default CSS styling that makes it really easy to see your project while you are busy creating your controllers in the MVC model. I found this incredibly helpful for when I was setting up my database and models to easily see if my code was working as intended.

Corneal also has this awesome method built in for creating easy rake migrations.

flatiron-school sinatra web-development sinatra-project ruby

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire Ruby on Rails Developer | Hire RoR Developer

#1 Ruby on Rails development company. Hire Ruby on rails developer or a team to build secure, scalable and complex web solutions with a quick turnaround time.

10 Writing steps to create a good project brief - Mobile app development

This comprehensive article covers 10 writing steps to create a good project brief/summary for mobile app development and the writing mistakes to avoid.

Why Web Development is Important for your Business

With the rapid development in technology, the old ways to do business have changed completely. A lot more advanced and developed ways are ...

Important Reasons to Hire a Professional Web Development Company

    You name the business and I will tell you how web development can help you promote your business. If it is a startup or you seeking some...

Hire Dedicated eCommerce Web Developers | Top eCommerce Web Designers

Build your eCommerce project by hiring our expert eCommerce Website developers. Our Dedicated Web Designers develop powerful & robust website in a short span of time.