All projects

FitUp

A fitness app for iOS and Android: log meals and workouts, build training plans, watch monthly progress charts. React Native + Expo on top of a Laravel API.

FituUp Banner

Who it is for

People who want food, training and progress in one app instead of three.

My contribution

  • Expo / React Native app — 30+ screens, onboarding, gestures, haptics, charts
  • Laravel REST API with Sanctum auth — meals, workouts, plans, stats
  • External food and exercise data, translated into Slovak with DeepL
  • Slovak/English localisation with i18next

Collaboration

Built solo end to end — design, mobile app, API and data — across 230+ commits.

The challenge

Fitness apps usually do one thing well. FitUp had to track meals with macros, run workouts set by set and turn all of it into monthly stats — and still feel quick enough to use between sets.

The solution

An Expo app with file-based routing, Redux Toolkit and TanStack Query, talking to a Laravel API secured by Sanctum. Food and exercise data come from external APIs, get translated with DeepL, and stats are computed server-side and drawn with Victory Native.

Results & impact

  • One app covers meals, workouts, training plans and monthly progress.

  • Open source on GitHub — mobile app and API side by side.

Swipe, confirm, gone

Deleting an exercise is a gesture, not a button. The slide-out runs on the UI thread; only after it finishes does runOnJS call back into React to delete the data — with a haptic tap to confirm.

components/custom/SwipeToDelete.tsxFrom the codebase
const SwipeToDeleteComponent = (props: ComponentProps) => {
  const swipeTranslateX = useSharedValue(0);
  const marginVertical = useSharedValue(20);
  // …

  const showDeleteConfirmation = (id: number) => {
    Alert.alert(props.alert?.title, props.alert?.desc, [
      {
        text: t("workoutDetails.deleteExerciseModal.cancelButton"),
        style: "cancel",
        // Changed your mind? The card springs back into place.
        onPress: () => {
          swipeTranslateX.value = withSpring(0);
        },
      },
      {
        text: t("workoutDetails.deleteExerciseModal.deleteButton"),
        style: "destructive",
        onPress: () => {
          marginVertical.value = withTiming(0, { duration: 200 });
          swipeTranslateX.value = withTiming(
            -WIDTH_SCREEN,
            { duration: 300 },
            (finished) => {
              // The animation runs on the UI thread; deleting data
              // has to hop back to JS once it's finished.
              if (finished) {
                runOnJS(props.onDeleteHandler)(id);
              }
            },
          );
          Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success);
        },
      },
    ]);
  };
  // …
};

Six months of lifting, one request

The progress chart is computed in Laravel: workouts grouped by month, weights summed across exercises and sets, and every month present — even the lazy ones.

app/Http/Controllers/StatsController.phpFrom the codebase
public function getMonthlyWorkoutStats(Request $request)
{
    $user = $request->user();
    $startDate = Carbon::now()->subMonths(5)->startOfMonth();

    $workouts = $user->workouts()
        ->where('created_at', '>=', $startDate)
        ->get();

    $groupedTotals = $workouts
        ->groupBy(fn ($workout) => Carbon::parse($workout->created_at)->format('n'))
        ->map(function ($workouts) {
            $total = 0;
            foreach ($workouts as $workout) {
                foreach ($workout->exercises as $exercise) {
                    foreach ($exercise->sets as $set) {
                        $total += $set->weight;
                    }
                }
            }
            return $total;
        });

    // Six fixed buckets, so a month without training shows up as 0
    // in the chart instead of silently disappearing.
    $total_weight_lifted = [];
    $monthIterator = $startDate->copy();
    for ($i = 0; $i < 6; $i++) {
        $month = (int) $monthIterator->format('n');
        $total_weight_lifted[] = [
            'label' => $month,
            'value' => $groupedTotals->get($month, 0),
        ];
        $monthIterator->addMonth();
    }
    // …
}

Key decisions

Stats are computed on the server

Aggregating months of sets is a query, not a render. The app receives chart-ready numbers and stays fast on older phones.

Gestures on the UI thread

Swipe-to-delete and carousels run on Reanimated worklets, so they stay at 60 fps even while the JS thread is busy fetching.

What I learned

On mobile, animations have to run on the UI thread or they stutter. Reanimated taught me to think about which thread a line of code runs on — and when to hop back with runOnJS.