---
title: "Buhocenter"
year: "2020"
motto: "E-commerce Platform"
description: "E-commerce developed as Software Development course. I was the tech lead and main designer of the team. I also was in charge of managing the integration with third party services."
stack: ["vuejs", "nestjs", "nodejs", "typescript"]
website: "https://github.com/RolandoAndrade/buhocenter"
url: "https://rolandoandrade.me/projects/buhocenter/"
author: "Rolando Andrade"
---

# Buhocenter

> E-commerce Platform

E-commerce developed as Software Development course. I was the tech lead and main designer of the team. I also was in charge of managing the integration with third party services.

Year: 2020. Stack: vuejs, nestjs, nodejs, typescript. Website: https://github.com/RolandoAndrade/buhocenter

Repositories:

- [github](https://github.com/RolandoAndrade/buhocenter)
- [gitlab](https://gitlab.com/RolandoAndrade/buhocenter)

Most online stores only accept credit cards. That shuts out many buyers, especially where banks are unreliable. In Venezuela in 2020, people needed alternatives to the local currency. A store that accepted cryptocurrency could serve a real need.

That year, our university Software Development course asked us to build a complete e-commerce platform from scratch. I was the tech lead and the main designer. My main job was connecting the platform to outside services. We called it Buhocenter.

## A store paid in crypto

Customers browse products sorted into categories. They add items to a cart. They check out with cryptocurrency.

People can sign up with email, Google or Facebook. After that, they manage their profile and shipping addresses. Addresses only work for places in the United States. A third party API checks each one.

Managers run the catalog from the admin side. They add products, update inventory and set a minimum stock level for each item. The system tracks which items are running low.

Email keeps users informed. A welcome email goes out when someone signs up. A confirmation arrives after each purchase. Marketing emails announce new offers and discounts.

## Two codebases, one contract

The application has a frontend and a backend. Both use TypeScript.

The frontend runs on Vue.js 2. It handles routing, state with Vuex, and translations. Users can switch languages without reloading the page.

The backend uses NestJS, a framework for Node.js. NestJS gives an API a fixed structure through decorators and dependency injection. Decorators are labels on a class that tell the framework what it does. Dependency injection means the framework hands each class the pieces it needs. PostgreSQL stores all the data.

This split made teamwork easier. Frontend developers worked without waiting for backend developers. The API contract was the line between them.

## One module per domain

The backend groups code into focused modules. Each module owns one domain:

- Users and authentication
- Products and catalogs
- Shopping carts
- Payments and transactions
- Addresses
- Notifications
- Third party integrations

Inside a module, the work has layers. Controllers receive HTTP requests. Services hold the business rules. Repositories talk to the database. These layers kept the code easy to maintain as it grew.

## Firebase handles the logins

User login goes through Firebase Auth. It takes care of the hard parts of social login. A user clicks a button, signs in with Google or Facebook, and gets a token. A token is a signed string that proves who you are. The backend checks this token on every request.

Email sign up works too. Firebase handles password hashing, email verification and account recovery. We did not build any of that ourselves.

The frontend stores the token and attaches it to each API request. Backend middleware checks the token before the request goes any further.

## Paying with UTRUST

Payments go through the UTRUST gateway. A gateway is the service that actually takes the money. UTRUST lets customers pay with several cryptocurrencies.

The checkout works in six steps:

1. The user confirms the cart.
2. The backend creates an order.
3. UTRUST returns a payment URL.
4. The user pays on that page.
5. A webhook confirms the payment. A webhook is a message UTRUST sends to our server when something happens.
6. The order status updates.

Each step has error handling and logging.

I designed the payment module with the strategy pattern. Every payment method follows the same interface, and each one is a separate strategy. The cryptocurrency strategy handles UTRUST. Adding another payment method later means writing one more strategy.

## Bad addresses never get saved

A wrong address means a failed delivery and an unhappy customer. We used SmartyStreets to check addresses in the United States.

When a user enters an address, the backend sends it to SmartyStreets. The API returns a standard version with the postal code and location data. If SmartyStreets cannot verify it, the user sees an error.

This check runs before saving. A user cannot add an invalid address to their account. Shipping problems stop at the door.

## What shoppers see

The Vue.js app works on any screen size. Product cards show the image, the price and whether the item is available. A click opens the full product page with details and reviews.

The cart survives between sessions. Users add items, change quantities and remove products. The cart shows a running total and applies any discounts.

Vuex holds the shared state: user data, cart contents and the product catalog. Components watch the store and update on their own. Every view shows the same data.

All visible text comes from translation files. Switching language updates the whole interface without a reload. More people could use the store in their own language.

## Leading the team

As tech lead, I made the architecture decisions and reviewed the team's code. I chose NestJS because it forces a structure. Junior developers could follow its patterns instead of inventing their own.

Code reviews caught problems early. I looked for security issues, slow code and code that would be hard to maintain. The goal was to help the team write better code over time.

The third party integrations were mine. I wrote the Firebase login, the SmartyStreets checks and the UTRUST payments. These parts talked to outside systems, so they needed careful error handling.

## Where it got hard

Testing crypto payments was difficult. The UTRUST sandbox, its test mode, did not match production exactly. Some edge cases only appeared with real transactions. We had to be extra careful with error handling.

Coordinating the team took effort. People had different skill levels, so they moved at different speeds. Some features finished fast while others fell behind. I had to balance helping teammates with my own work.

Database migrations caused trouble. A migration is a script that changes the database structure. TypeORM could generate them automatically, but sometimes they made changes we did not expect. We learned to review every migration by hand.

## Leading is not coding

This project taught me how to lead a technical team. Writing code is different from guiding others to write it. Clear communication mattered more than clever code.

Outside services fail, send unexpected data or change without warning. Every integration needs timeouts, retries and a fallback plan.

A simple shopping trip hides a lot of parts: accounts, catalogs, carts, payments, addresses and notifications. Each part is simple alone. Together they make a complex system.

Real software means teams, deadlines and integrations. Buhocenter was my first look at that work.

* * *

If you are building e-commerce solutions or working with payment integrations, I would be happy to discuss approaches.

[Book a call with Rolando](https://rolandoandrade.me/pricing/)
