Thursday – June 30th – One More Day Left of Bootcamp

Twas the last day of June and not many were at the Dojo

Today started off pretty blah. I was the first in my cohort to arrive at the Dojo today and by about 9am there were only four of us total here. Another person trickled in in the afternoon.

At any rate, I had a productive day today! I spent some of my morning writing a blog post that was long over due. Once that was out of the way, I started looking at some Rails associations from the platform. Afterwards, I went back to the LAMP stack to see if there were any projects to I could recreate in Rails. I noticed one – involving Products (showing and removing products)…that sparked an idea to add login and registration to it and instead of any product…create books.

At 3:30pm I had completed the login/registration/logout, show page(user dashboard) that displays a list of books that are added by users —- The user who created a book can edit (updating the title, description, quantity or price) or remove the book. There also another table that can display the books that the user purchased. And finally a user can cancel an order by deleting the row in the associated table.

Here’s some of my work in the console:Screen Shot 2016-06-30 at 3.35.38 PM

Snippets of my Books controller:Books Controller

User Dashboard Controller: User Dashboard Controller

Routes file:
Routes File

I have to say, I’m pretty excited about what I created in about 5 1/2 hours (with a couple breaks in between). It’s rather exciting because three months ago I wouldn’t have been able to get that far – Now, because I have a better understanding of queries, making information appear on view pages and getting the data submitted by the user; I am able to press forward. I’m excited to put these skills to good use.