JinWook Ock옥진욱
KO
All projects

Market System

Public-market integrated ops · full-stack greenfield

Set up Blue-Green zero-downtime deploys with Jenkins and SSH.

What I built

Full-stack platform for municipal market merchants and stall admins — Next.js (SSR) + Spring Boot. Market-code tenancy, JWT RTR, virtual-account state machine, Jenkins + SSH blue/green deploys. Notices (Tiptap + DOMPurify), Tailwind UI, shared DataTable, mail/password auth, log rotation.

Key work

JWT RTR with marketCode claim; immediate invalidation on SignatureException
Atomic virtual-account assignment
PESSIMISTIC_WRITE UNUSED → ASSIGNED
Dual roles
system Role OR market-scoped MarketRole
Blue/green zero-downtime
Jenkins SSH plugin runs deploy.sh / rollback.sh on remote hosts
Tiptap notice CRUD + DOMPurify (XSS), popup notices
Virtualized DataTable
drag copy/paste, shared Excel import/export
SSR menu tree filtered by marketCode; fixed duplicate token refresh
Date-based log rotation; mail + forgot/reset password flows

Code

JwtTokenProvider.java
// marketCode 클레임 포함 발급 — 위변조 시 서명 검증 즉시 실패
var builder = Jwts.builder()
.subject(auth.getName())
.issuedAt(now)
.expiration(expiry);
 
if (marketCode != null)
builder.claim("marketCode", marketCode.trim());
 
return builder.signWith(getSigningKey()).compact();
 
// 예외 처리 분기
// SignatureException → Refresh Token 즉시 무효화
// ExpiredJwtException → 갱신 플로우 진행
Next projectPatrolPark