Ecommerce

How to vibe code an eCommerce API - Part 3: Dependency Injection & Logging

Welcome to the third part of my series on vibe-coding an eCommerce API! In this series, I’ll walk you through the process of designing and implementing a robust, scalable API for an eCommerce platform. You can find the second part here.

The project architecture is already in place. You can see the current version of the code here.

Now if you noticed in src/infrastructure/http/routes/productRoutes.ts, there is a section in line 17 that create dependencies that will be used by the router and controller.

Continue reading

How to vibe code an eCommerce API - Part 2: Base architecture

Welcome to the second part of my series on vibe-coding an eCommerce API! In this series, I’ll walk you through the process of designing and implementing a robust, scalable API for an eCommerce platform. You can find the first introductory part here.

I am a Javascript developer, and I have a personal list of tools I want to use in this portfolio project: tsyringe for DI, jest for unit testing, MySQL and MongoDB for the databases (yes, I will showcase both).

Continue reading

How to vibe code an eCommerce API - Part 1: Introduction

Welcome to the first part of my series on vibe-coding an eCommerce API! In this series, I’ll walk you through the process of designing and implementing a robust, scalable API for an eCommerce platform. All this while using an AI-powered IDE (I personally used Jetbrains Junie, but you can get similar results with any other AI Assistant). AI Assistants are really powerful tools, and like any other tool they are not responsible for what they do, we, the developers, are.

Continue reading