/Ruby_challenge

Create a database schema with filters and search

Primary LanguageRuby

The Challenge was to create a database populated with data using a schema similar to below:

Table Field
Departments name
Table Field
Products name
price
department_id
Table Field
ProductsPromotions product_id
promotion_id
Table Field
Promotions code
active
discount

The requirements for this Application are:

  • A paginated list of all products in the database showing their name and price, and showing a products current promotion and discounted price if one is active.

  • Department filter: Selecting a department will display all of the products within that department.

  • Simple partial text search based on product name.

To get the application up and running:

NOTE: The frontend implemented using bootstrap.