GymMadang, a gym as easy to visit as your own front yard

Built the Challenge feature of an all-in-one fitness platform that tackles short-lived workout habits with personality-based challenges

Role
Challenge feature development · React structure · Server deployment
Period
2025.08 (1 month)
Type
GymMadang all-in-one fitness platform · Team project
Team
Development 4 (incl. me)
00 Overview

Bottom line

  • Personality-based recommendations
  • KakaoPay deposits
  • WebSocket chat
  • JWT auth
  • Server deployment
Bottom line

The problem isn’t willpower, it’s the method Designed consistency that fits each person’s personality

  • 5Workout personality types
  • 50 · 80 · 100%Bronze, silver and gold rewards by attendance
  • Real-timeWebSocket group chat

An all-in-one fitness platform with a Korean concept, from personality-based recommendations to workout logs, workout mates and equipment trading. I built the Challenge area: personality tests, joining with a deposit, attendance rewards and group chat.

PROCESS
  1. React structure
  2. JWT auth
  3. Personality test and recommendations
  4. KakaoPay deposits and attendance rewards
  5. WebSocket group chat
  6. Linux deployment
01 Background

Working out? Starting tomorrow...

We say we’ll work out, so why does it never last more than three days?

GymMadang combines “gym” with “madang”, the Korean word for a front yard you can step into anytime. Four of us built one platform connecting workout logs, challenges, finding workout mates and an equipment market.

People in their 20s and 30s make up 42.8% of gym payments in Korea (한국체육학회, 2023) · Share of 20-somethings making health efforts: 30.8% in 2016 → 55.0% in 2024 (Embrain, 2024)
02 Problem

The problem isn’t willpower, it’s the method

People know they need exercise, but can’t keep it up

What gym-goers struggled with
  1. Knowing exercise matters but not keeping it upConsistency
  2. No good way to log workoutsLogging
  3. Hard to find a compatible workout mateTogether
  4. Equipment that’s too expensiveCost

Why it matters

Working out alone easily ends after three days. So the goal became to design consistency around each person’s personality instead of relying on willpower.

Needs and directions drawn from user research and persona analysis
03 Solution

Designing consistency that fits you

Recommend challenges by personality, then keep people going with deposits and rewards

Thought process
  1. Observation

    People know exercise matters but can’t keep it up, and working out alone ends after a few days.

  2. Question

    If the problem is the method rather than willpower, can we suggest a method that fits each person?

  3. Decision

    Recommend challenges through a personality test, and sustain participation with deposits, attendance rewards and group chat.

  1. Solution 1Personality-based recommendations
    Before
    Hard to know which challenge suits you
    Insight
    Knowing personality and interests makes it possible to suggest where to start
    After
    • Five personality types from eight questions
    • Recommendation logic reflecting interest keywords
    • Later extended to AI recommendations
  2. Solution 2Deposits and attendance rewards
    Before
    Working out alone creates little accountability
    Insight
    Commitments and rewards encourage consistent check-ins
    After
    • KakaoPay deposits with refund and donation
    • Bronze, silver and gold norigae at 50, 80 and 100% attendance
  3. Solution 3Real-time connection
    Before
    Motivation is hard to sustain alone
    Insight
    People in the same challenge should be connected right away
    After
    • Real-time group chat over WebSocket
    • Unread-count display
04 Action

Building Challenge and deploying the server

From personality tests to creating challenges, payment, check-ins and chat

  1. RecommendTest · recommendationsEight questions, up to 5 keywords Up to 4 recommended challenges
  2. JoinApply · payKakaoPay deposit Approve, cancel, refund APIs
  3. Check inPhoto attendanceStamp board, photos by date Attendance-based rewards
  4. TalkGroup chatReal-time messages over STOMP Read status

Architecture

React components and custom hooks improved reuse, communicating with Spring Boot over REST APIs. Stateless JWT authentication used an access and refresh token structure.

React → Nginx → Spring Boot → MariaDB, with WebSocket real-time communication

API flows and ERD

Challenge screens

Design concept

Tech Stack

Frontend
  • React
  • Axios
  • Redux

Component structure and custom hooks kept code consistent, with JWT-based API requests managed in global state.

Backend
  • Spring Boot
  • MyBatis
  • MariaDB
  • JWT

Direct control of complex SQL such as attendance rates, with data integrity across challenges, attendance and payments.

Realtime · Payment
  • WebSocket
  • KakaoPay API

Used for two-way group chat and challenge deposits.

Cache
  • Caffeine Cache

Introduced to reduce server load and cost from AI recommendation calls.

Infra
  • Linux
  • Nginx
  • Docker
  • Let’s Encrypt

Built and deployed React and Spring Boot on Ubuntu, with a reverse proxy and SSL.

05 Result

Today’s step becomes tomorrow’s consistency

5

Workout personality types with matching recommendations

50 · 80 · 100%

Bronze, silver and gold rewards by attendance

Deployment

Deployed frontend and backend on Linux, operating Nginx, SSL and MariaDB

Visit GymMadang ↗

06 Learning

Connecting a feature all the way through

  • Lesson 1

    Payments must connect to reward logic

    I integrated approve, cancel and refund APIs with callbacks, and combined them with attendance-based rewards to build deposit refunds and donations.

  • Lesson 2

    Understanding how real-time communication works

    Building group chat taught me how WebSocket works, along with message brokers and the pub/sub structure.

  • Lesson 3

    Handling authentication and deployment myself

    I went deeper into auth flows with access and refresh tokens and HttpOnly cookies, and experienced deployment from Nginx and SSL to separating environment variables.