How to enable Filtering

I want to enable my customers to see a product based upon their selection of price range.
Is it possible?

Also I want to enable Categories along with checkboxes as shown

I don’t understand where to add that code, and where will that category box (image attached)


you just need to set price and categories attributes as facets:

Don’t forget to reindex your data when you do it.