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)
Bottom line
- Personality-based recommendations
- KakaoPay deposits
- WebSocket chat
- JWT auth
- Server deployment
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.
- React structure
- JWT auth
- Personality test and recommendations
- KakaoPay deposits and attendance rewards
- WebSocket group chat
- Linux deployment
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.
The problem isn’t willpower, it’s the method
People know they need exercise, but can’t keep it up
- Knowing exercise matters but not keeping it upConsistency
- No good way to log workoutsLogging
- Hard to find a compatible workout mateTogether
- 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.
Designing consistency that fits you
Recommend challenges by personality, then keep people going with deposits and rewards
- Observation
People know exercise matters but can’t keep it up, and working out alone ends after a few days.
- Question
If the problem is the method rather than willpower, can we suggest a method that fits each person?
- Decision
Recommend challenges through a personality test, and sustain participation with deposits, attendance rewards and group chat.
- 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
- 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
- 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
Building Challenge and deploying the server
From personality tests to creating challenges, payment, check-ins and chat
- RecommendTest · recommendationsEight questions, up to 5 keywords Up to 4 recommended challenges
- JoinApply · payKakaoPay deposit Approve, cancel, refund APIs
- Check inPhoto attendanceStamp board, photos by date Attendance-based rewards
- 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.
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.
Today’s step becomes tomorrow’s consistency
Workout personality types with matching recommendations
Bronze, silver and gold rewards by attendance
Deployed frontend and backend on Linux, operating Nginx, SSL and MariaDB
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.
