Hey ya’ll. If you are like me, and have started using rails, then you probably feel like the picture above. You have started to harness the magic that is rails and are taking advantage of all of the tools that are now at your fingertips. Its no joke. Half the stuff rails does for us makes it feel like an actual magician lives inside our keyboard. If you don’t feel that way, well then maybe we just see the world a bit differently. Lets talk about a particular bit of sorcery that rails has in it’s spell book.
So What’s a CRUD? It stands for Create, Read, Update, and Destroy. Our PokeDex needs to allow the user to add Pokemon to their Pokedex, edit them, and delete them. It should also let the user see which pokemon they have added. Our app will also have a sign up and a login that uses the bcrypt gem to protect user passwords. If that all makes sense then lets go ahead and jump in.
For this project we are using Sinatra and ActiveRecord, along with SQLite3. We will run our server on the localhost:9393 port using the Shotgun Gem.
This is my tutorial for creating a command line interface with Ruby to access an API to retrieve specific data. It assumes that you are using Ruby to write your application and already have a GitHub account.
The specific application we will be building here uses the Apex Legends API to pull statistics on a player. We’ll be using object oriented programming to get the job done.
Head over to your GitHub account and log in. make your way over to your repositories and hit the “New” button. Give your repository a name ,(something cool like “MegaAwesomeProject”) along with a…
From wood work to computers.
This is my favorite picture of all time. Here you can clearly see who runs the woodshop. In the middle you’ve got me, and to my side, well me again. I’m holding a small four legged me while me, myself, and I all gaze deeply into the camera. If you can’t tell by now, I’m sorry to say but it’s true. This photo has been photoshopped. The point I’m trying to make here is that with anything in life, if you can think it, you can make it.
For the better part of a decade…
Just a dude that likes to code