Customizing a Default Spree Store, Time Estimates

Customizing a Default Spree Store, Time Estimates

Spree is a great Ruby on Rails e-commerce platform, allowing developers and clients to quickly set up an online store-front. A completely functional store can be built in a relatively short amount of time. Additional customization can commence from there.

Spree comes with a front end theme already installed. This allows a developer to quickly provide a working store with a usable front end. A default Spree store looks like this:

Read more

Using Bootstrap Panels to Organize Data in a Rails App

Using Bootstrap Panels to Organize Data in a Rails App

I’m creating a basic pantry application which will be able to catalog current items in the user’s pantry.  So, one of the pages needed will display different food items and the current quantities in the user’s pantry.  A way to organize this data is to use a Bootstrap Panel to display the current totals and when the selected panel is clicked, individual data values will be displayed.

The data structure consists of Store, Producer, and Unit models, which all just consist of a name.  Next, we have the Food model which has a name, upc, servings, serving_size, and references to a Producer and Unit.  Finally, we have the Stock model which has a price, quantity, discount, bought, and references to Food, Store, and User (for the User I’m just using the basic Devise User model).

Read more