A method of brewing coffee includes the following steps:—;requesting a user to select a coffee-based beverage on an input device coupled to a coffee brewing apparatus; selecting a suitable water recipe from a database comprising a plurality of water recipes suited for brewing coffee, wherein the selected water recipe is suited to the selected coffee-based beverage, wherein the water recipe defines a set mineral concentration of brewing water to be prepared; requesting a water preparation unit to prepare a brewing water based on the water recipe, wherein the water preparation unit is adapted to mineralize the brewing water according to the set mineral concentration of the water recipe; preparing brewing water based on the water recipe; and brewing the coffee-based beverage with the brewing water prepared according to the water recipe.