項目作品/Clofel Creates
為獨立藝術家兼開發者打造嘅全端作品集與電商商店,支援即時庫存與委託追蹤。

為獨立藝術家兼網頁開發者打造嘅全端電商與創意作品集平台。具備即時庫存管理嘅互動式公開店面、帶蜜罐反機械人防護、動態預算校驗與多幣種定價嘅公開藝術委託查詢與即時訂單狀態追蹤流程,以及用於管理商品、作品集、媒體上傳、優惠券同財務報表嘅管理後台CMS。
Key architectural decisions, concrete code implementations, and performance wins behind this project.
Client commission requests were frequently submitted with unrealistic lowball budgets or missing reference photos for custom portrait art, alongside unsolicited spam submissions targeting public intake endpoints.
Built a specialized multi-tiered validation engine in CommissionsService that programmatically classifies commission categories (art vs. software/web) and enforces custom minimum budget constraints (e.g. ₱500 chibi up to ₱2,600+ large canvas) along with mandatory reference assets. Integrated a zero-friction honeypot field that silently drops automated bot submissions without burdening legitimate clients with intrusive CAPTCHAs.
Preventing internal database schemas, Prisma queries, and stack traces from leaking to client responses across unexpected runtime failures while ensuring actionable tracing for operators.
Engineered an application-wide NestJS ExceptionFilter that generates unique request correlation IDs (`requestId`), traps both known HTTP exceptions and raw uncaught runtime errors, logs complete stack traces server-side with structured logging, and formats safe, sanitized JSON contract payloads for the client.
Self-hosting multi-tier services (Next.js client and NestJS API) behind a shared Traefik ingress while supporting large multipart media uploads up to 50MB and maintaining zero-downtime health dependencies.
Configured Docker Compose service definitions with automated HTTP healthcheck probes, Traefik dynamic labels with router priority isolation, automatic Let's Encrypt TLS termination, and custom request buffering with network error retries for high-volume uploads.
Preventing hotlinking, unauthenticated external image injection, or arbitrary URL storage in portfolio and commission records.
Enforced strict origin URL verification against configured Cloudflare R2 public endpoints prior to persisting database records, ensuring all media assets pass through authenticated presigned upload pipelines.
// community_discussion
Have thoughts, questions, or ideas regarding this system's architecture? Leave a comment below with your GitHub account.