Install your cabinets first. If you're using thick wood flooring, make sure your cabinets are almost as thick.  You want the countertop to be the perfect height from the floor.