ProjectsBackend & Architecture
Enterprise Digital Archive Engine & Document Lifecycle API
A robust, module-based RESTful API built with NestJS and TypeScript for corporate document archiving and lifecycle management. Features automated mail tracking, dynamic file routing, and automated PDF generation engine.

My Role
- 01Architected a scalable RESTful API using NestJS, leveraging Custom Guards and JWT for secure authentication and state tracking.
- 02Implemented enterprise-grade CRUD operations featuring high-performance pagination, prefix-matching search filters, and strict Soft Delete integrity.
- 03Designed complex database relations for letter tracking, enabling automated hierarchical links for mail replies (parentLetterId).
- 04Engineered a dynamic file management layer that maps file uploads directly to structured physical disk directories based on auto-generated date patterns (yyyy/MM/dd).
- 05Integrated PDFKit to programmatically generate official corporate documents from database records on-the-fly.
Features
- 01Hierarchical Correspondence Tracking: Seamless integration linking outgoing replies back to original incoming letters for complete audit trails.
- 02Smart Archival Coding: Automatic generation of unique archiveCode string identifiers derived from transaction metadata timestamps.
- 03Dynamic File Explorer (Disk-Based Search): High-efficiency document browsing allowing users to filter assets via date-based directory prefix matching.
- 04Automated PDF Generator Engine: On-demand document rendering using PDFKit, complete with automatic old-file purging mechanism to save disk space.
- 05Strict Soft Delete Integrity: Preserving historical relational continuity while preventing accidental document loss.
Impact
- Optimized Database Cleanliness: Prevented accidental data loss and preserved relational history through consistent Soft Delete implementation.
- Storage Space Optimization: Achieved 100% efficiency in disk storage by enforcing automated delete-before-overwrite policies on file modifications.
- Highly Maintainable Architecture: Accelerated backend scalability and testing by strictly following NestJS's modular design patterns.
Stack
NestJSTypeScriptPDFKitJWTPostgreSQL
