-
PostgreSQL deep dive: Syncing Cart items
context: I was working on persisting cart items in database. The tech stack is React, Nest, Drizzle and Postgres. approach: I thought it would be simple as its just POST and GET requests for syncing, but I went deep diving postgres DB. the saving: Cart Item Table: Approach 1: I can add a product to…
-
Flexible Storage Providers in Nest.js
Implementing file upload service Requirement: I needed a generic file uploader service which have the following functionalities: Also, I might change the service provider later. Currently, I wanted to use ImageKit but later I might change to dropbox or aws s3 or onedrive, etc. But, I want minimal changes in my code with a single…