Creating my first CLI project

Freddy
1 min readNov 22, 2020

My first Cli project has become due. Seems like it was just yesterday that we started the course. Like the rest of the course it was a bit difficult, learning on the go is not easy. Creating a repository from scratch and linking the project to choosing a API and how you want it set up took time, don’t wait until the last minute.

I decided to create a menu for my CLI project, searching for the correct API is key. After my fourth choice I found the one for me. So i had to build my project around the API. I finally decided on themealdb.com, it gave me all the information I needed.

Building my project CLI to interact with the end user wasn't so bad. through trial and error I established my first simple but effective cli.rb folder. Overtime I will want to come back and edit the CLI project to become more advance and better running program.

Deciding whether to scrape or use an API was another challenge. Due to the differences in both I decided that using API was the best bet for me. Setting up the API I decided rest-client and json were better than using httparty and the other options.

All in all this was my first cli project and I’m happy with the way it turned out. As time goes on I look forward to constantly editing and making the program better.

--

--

Freddy
0 Followers

Aspiring Software Engineer, looking forward to connect with the current and future leaders of tech!