Method of brewing coffee, comprising the following steps:- requesting a user to select a coffee-based beverage on an input devicecoupled to a coffee brewing apparatus;- selecting a suitable water recipe from a database comprising a plurality ofwater recipes suited for brewing coffee, wherein the selected water recipe issuited tothe selected coffee-based beverage, wherein the water recipe defines a setmineralconcentration of brewing water to be prepared;- requesting a water preparation unit to prepare a brewing water based on thewater recipe, wherein the water preparation unit is adapted to mineralize thebrewingwater 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 accordingto the water recipe.