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.
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.
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.
After creating an account you are automatically logged in.
View all makeup bags and lipsticks.
Edit makeup bags and lipsticks
Interested in seeing the source code? Check it out on Github.