Skip to content

An app where you can filter and search mushrooms that meet specific attribute(s)

Notifications You must be signed in to change notification settings

mercyoseni/mushrooms

Repository files navigation

MUSHROOMS

An app where you can filter and search different types of mushrooms that meet specific attributes.

Info and Functionalities:

  • From the data provided from UCI Machine Learning repository, mushroom has twenty-three(23) attributes.
  • Each attributes is also classified into its own sub fields.
  • You can filter mushrooms based on the sub fields then click on the Apply Filter button to view the results in tabular form.
  • You can search on all fields for a match with the search terms; search terms can be separated by commas.
  • You can Reset the filter(s)/search by clicking on the Reset button.
  • Filter and Search results are paginated; 25 rows per page.
Mushroom class Cap Shape Cap Surface Cap Color Bruises Odor Gill Attachment Gill Spacing Gill Size Gill Color Stalk Shape Stalk Root Stalk Surface Above Ring Stalk Surface Below Ring Stalk Color Above Ring Stalk Color Below Ring Veil Type Veil Color Ring Number Ring Type Spore Print Color Population Habitat
e - edible b - bell f - fibrous n - brown t - bruises a - almond a - attached c - close b - broad k - black e - enlarging b - bulbous f - fibrous f - fibrous n - brown n - brown p - partial n - brown n - none c - cobwebby k - black a - abundant g - grasses
p - poisonous c - conical g - grooves b - buff f - no l - anise d - descending w - crowded n - narrow n - brown t - tapering c - club y - scaly y - scaly b - buff b - buff u - universal o - orange o - one e - evanescent n - brown c - clustered l - leaves
- x - convex y - scaly c - cinnamon - c - creosote f - free d - distant - b - buff - u - cup k - silky k - silky c - cinnamon c - cinnamon - w - white t - two f - flaring b - buff n - numerous m - meadows
- f - flat s - smooth g - gray - y - fishy n - notched - - h - chocolate - e - equal s - smooth s - smooth g - gray g - gray - y - yellow - l - large h - chocolate s - scattered p - paths
- k - knobbed - r - green - f - foul - - - g - gray - z - rhizomorphs - - o - orange o - orange - - - n - none r - green v - several u - urban
- s - sunken - p - pink - m - musty - - - r - green - r - rooted - - p - pink p - pink - - - p - pendant o - orange y - solitary w - waste
- - - u - purple - n - none - - - o - orange - ? - missing - - e - red e - red - - - s - sheathing u - purple - d - woods
- - - e - red - p - pungent - - - p - pink - - - - w - white w - white - - - z - zone w - white - -
- - - w - white - s - spicy - - - u - purple - - - - y - yellow y - yellow - - - - y - yellow - -
- - - y - yellow - - - - - e - red - - - - - - - - - - - - -
- - - - - - - - - w - white - - - - - - - - - - - - -
- - - - - - - - - y - yellow - - - - - - - - - - - - -

Getting Started

  • To clone the app, run git clone https://github.com/mercyoseni/mushrooms.git
  • Checkout to the app's directory, run cd mushrooms
  • Run bundle install to install gem dependencies
  • Run rails db:setup to create databases, run migrations, and seeds
  • Run rails s to start the server, navigate to http://localhost:3000

Tests

  • To run the tests, run rspec spec

Screenshots:

Homepage - When no filtering or searching

Screenshot 2019-07-29 at 3 45 21 AM

When no records found from filtering or searching

Screenshot 2019-07-29 at 3 46 45 AM

When records is found from filtering

Screenshot 2019-07-28 at 12 15 22 AM

Pagination and filter action buttons

Screenshot 2019-07-28 at 12 28 14 AM

Search

Screenshot 2019-07-28 at 10 57 05 PM

Screenshot 2019-07-28 at 11 03 34 PM

Limitations

  • The app is not mobile responsive

References