Tag: deeptech
All the articles with the tag "deeptech".
-
Affiliate & Referral Tree — Materialized Path Hierarchy on UserEntity
Add a self-referential affiliate tree to UserEntity using the materialized path pattern — store each user's ancestry as a string path, enabling O(1) depth lookups, efficient descendant queries with a single LIKE clause, and referral commission calculations without recursive CTEs.
-
Media Library — S3 Presigned Uploads, Magic Byte Validation & CDN
Build a production-grade media library with S3 presigned upload URLs, Bull-queue post-processing, magic-byte file-type validation, sharp thumbnail generation, and CloudFront CDN delivery — without ever routing file bytes through your API server.
-
Dual-App Monorepo — Portal API & Platform Interceptor
Add a second NestJS app (portal-api) for your internal operations team, wire up a RequestPlatformInterceptor that prevents user JWTs from working on the admin portal, and complete the enterprise-todo monorepo as a fullstack replacement scaffold.
-
Multi-tenancy & Role-Based Access Control (RBAC)
By the end of this part, you will learn multi-tenancy, tenantId pattern, TenantGuard, RBAC, Dual-auth architecture, @Authorize and promoting a module to multi-tenant.