My First Ruby CLI App Project
I have learned HTML, CSS, JavaScript, React and Ruby so far, and I have made my mind. Ruby is my favourite among those! Ruby is so simple that it’s easy to read and write. I’m not sure if it’s because I have already learned some object oriented programming earlier, but it was easier to play with OO concepts with Ruby too.
Here is my CLI(Command Line Interface) app GitHub : https://github.com/JustEddie/CLI-ruby-project
Get Eddie Na’s stories in your inbox
Join Medium for free to get updates from this writer.
I also published my app on Ruby Gem : https://rubygems.org/gems/best-things-to-do-in-melbourne
This time, instead of using API to get data, I scraped data from html webpage using css selector with open-uri and nokogiri ruby gems. It was so cool that I can make my own database simply scraping from a webpage. For each data rows scraped, I initialised attributes to provide information all together.
It was also fun to build my own command line interface application like 90’s computer. I even made a logo using https://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 and https://manytools.org/hacker-tools/convert-images-to-ascii-art/
I absolutely enjoyed coding with Ruby and building CLI app. One thing I regret is that I was so into just coding this when first started that I forgot to git commit for over 60 lines of code. Now that I regret this so much, I will never make the same mistake to forget to git commit again!





