Sinatra Makeup Organizer Project

I love makeup. In college, I had two part-time jobs. I was a customer service agent at an airline and a makeup counter girl. There is something very satisfying when you find a perfect shade of lipstick to go with your mood and outfit. Whether it be nice and neutral, fire red, or perfectly pink. I created a Sinatra App to organize my lipsticks.

giphy

Setup:

I had to think of my models and the relationship between each other.

A User has_many  makeup bags.

Makeup bags belongs_to the user.

The makeup bag can has_many lipsticks.

Lipsticks will belong_to a makeup bag.

 

Here is the final project structure.

sinatra_assessment.jpg

Because many users can have multiple makeup bags and lipsticks.  A database to store the user information using basic functions you can (CRUD) create, read, update, and delete data. As a user, you can create a new makeup bag and lipsticks, read/show all your makeup bags and lipsticks, update your lipsticks shade and makeup bag names.

Here is the home page.

Screen Shot 2016-08-23 at 8.36.22 PM

 

After creating an account you are automatically logged in.

View all makeup bags and lipsticks.

Screen Shot 2016-08-23 at 9.58.11 PM

Screen Shot 2016-08-23 at 10.02.51 PM

Edit makeup bags and lipsticks

Screen Shot 2016-08-23 at 9.59.03 PM

Screen Shot 2016-08-23 at 10.01.12 PM

Interested in seeing the source code? Check it out on Github.

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s