# Waterlator: From Sketch to Deployment

Published: 24 February 2024
Updated: 20 November 2026
Author: Omar Trkzi
URL: https://omartrkzi.com/blog/how-to-make-a-react-application-example-waterlator

> WaterLator is a React web app that uses the Galpin Equation to work out how much water you need during a workout, and this is how I built it.

### If you couldn't find it, then build it 🏗

About a year, or so, ago I was listening to this episode of the [Huberman Lab  podcast](https://open.spotify.com/show/79CkJF3UJTHFV8Dse3Oy0P), then I heard this hydration formula (called [Galpin Equation)](https://www.hubermanlab.com/episode/dr-andy-galpin-optimal-nutrition-and-supplementation-for-fitness) that tells you how much water you would need to drink during your workouts.

I didn't find any online tool that would do the math for me, so I thought of  making one myself.

![](https://cdn.sanity.io/images/r7fauxgo/production/9224674daf0846ea5cbdb64392d346b39cba3954-1059x1316.jpg?w=1360)

### Making content ? Might as well make it useful

As mentioned in [my previous blog](https://www.devfit.me/blogs/i-almost-quitted-instagram-again), I thought of building an app in public, and that's when I thought of this: a hydration calculator.

#### 
Day 0-1: Sketch + Resources 📚

I drew what the web app would look like and what it would do (i.e., inputs & outputs). I also went back to the Huberman Lab episode to fin out the exact formulas to use.


![](https://cdn.sanity.io/images/r7fauxgo/production/597adb60a8e7fc3768918e1fc2c6a42feef5796a-1658x897.png?w=1360)

![](https://cdn.sanity.io/images/r7fauxgo/production/4b31194056ae1ebe2d0c9670a45f85ecf7fe4748-1710x1739.jpg?w=1360)

#### Day 2-3: MVP ⭐

I set up the project, using [React JS](https://react.dev/). The initial version of the website was very simple with little to no styles but could do the needed calculations.

![](https://cdn.sanity.io/images/r7fauxgo/production/f51c0a77bd43849a07021226710a5185e21b7c91-486x433.jpg?w=1360)

#### Day 5-8: Re-design 📐

I asked on an [Instagram](https://www.instagram.com/omar.trkzi/) story for junior designers to collaborate with.
After explaining the goal of the application, I received two design suggestions: 

- Design by [@abdellahId](https://www.linkedin.com/in/abdellahid/):

![](https://cdn.sanity.io/images/r7fauxgo/production/5a755d8ff60e7bc6cd595541182aadf7ef045167-914x674.jpg?w=1360)

- Design by [@dounia-hanyn](https://www.linkedin.com/in/dounia-hanyn/):

![](https://cdn.sanity.io/images/r7fauxgo/production/7f7667e85229023c2e5819fbb4f8f5a0b9210da6-1080x899.jpg?w=1360)

I asked IG followers to vote on which one they thought was better. The result was a perfect 50/50, so [@abdelhadi](https://www.linkedin.com/in/abdelhadi-ouzdou-391888149/), a friend of mine, who is also a senior designer, suggested that the two designers collaborate. The result ? An amazing design, having the best of both.

![](https://cdn.sanity.io/images/r7fauxgo/production/31fe63f2d93d3a67aafc26897b5c7d449a0649f2-1080x1320.jpg?w=1360)

#### Day 9-13: New design implemented ✨

This part took some time, but I did it. I even asked the designers to add an animation and a few updates to the UI. 

![](https://cdn.sanity.io/images/r7fauxgo/production/e123dc6783cc54a37887fb86ea3ad9efccb0328a-689x1092.jpg?w=1360)

#### Day 14: Deployment 🚀

I used Vercel to deploy the application and asked for early feedback in IG stories, which I used to find out about a few UI bugs in certain browsers, and patched them.

![](https://cdn.sanity.io/images/r7fauxgo/production/bb12752087d5898caa377e6430724380dc95395b-992x434.png?w=1360)

### Ta-daaa 🪄


WaterLator is to me a living example of the beauty of engineering. How you can build tools you couldn't find, or solve problems you may have faced. Big up to anyone that contributed to the making of WaterLator.

Thank you for making it this far **_<3_**, did you check [WaterLator](https://water-calculator-lac.vercel.app/), yet ? Did you find it useful ? If that's the case, consider sharing it with a friend or friends that might find it useful.
