All projects

TravelAntino Labs

Travel Hangouts

Led the backend for a travel platform that sold pre-planned packages. The client's requirements kept moving and pages didn't share one shape, so the job was a data model general enough to take new page types without a rewrite, and APIs shaped around the screens that used them.

Client work under NDA
Role
Lead Backend Developer
Team
5–8 members, leading 2–3 backend developers
Timeline
Status
Completed
travelhangouts.app
Package page for a five-day pre-planned trip, with a hero photo area, duration and group size tags, a day-by-day itinerary from arrival to departure planned by the company, and a booking panel with the price per person, travel dates, what the package includes and a Book this package button

UI mockup from the original design, not an exact replica. The shipped interface is client IP and cannot be shown.

Pre-planned packages, itineraries planned by the company1 / 4

01

The problem

Travel Hangouts sold pre-planned travel packages: a customer picks a package and buys it, and the company plans the itinerary. The client's requirements kept changing as the product took shape, and the pages didn't share one structure. Most followed a general layout, but now and then a child page arrived with a shape of its own. The backend had to take those changes without the data model being reworked each time, and serve a frontend team that needed data in a form it could use directly.

02

The approach

I led the backend with two or three developers: splitting the work, reviewing it, and agreeing the API contracts with the frontend team. Rather than giving each new kind of page its own one-off document shape, we kept one general structure and expressed the differences through references between documents, so a new page type was new data in the existing model rather than a new model. On top of that, the APIs were shaped around screens. The homepage, for example, had one endpoint that returned everything it needed, instead of the frontend firing a set of parallel requests and stitching the results together. Builds and deployments ran through Jenkins.

Overview

2–3
backend developers led
1
homepage request instead of many parallel calls
1
data model for pages that didn't share a shape

03

Key decisions

One general structure, with references between documents

over A custom document shape for each kind of page

MongoDB makes it easy to give every page whatever shape it wants, and with requirements that kept moving that would have meant a new shape every time the client had a new idea. Keeping one general structure and handling the variations through references meant the odd child page fitted the model that already existed, and the frontend kept reading data the same way.

Endpoints shaped around screens

over Generic resource endpoints the frontend combines itself

With only generic endpoints, a page like the homepage means the browser fires several requests in parallel, waits for all of them and joins the data on the client. A single homepage endpoint does that work on the server, in one round trip, and gives the frontend exactly the data the screen shows.

The backend lead owning the API contracts

over Each developer settling their own endpoints with the frontend

With a backend team of three or four and a frontend team building at the same time, the contract is what lets both sides work without waiting on each other. Owning it as the lead meant one person answering for what each endpoint returns, so the frontend got one consistent API rather than one per developer.

04

What I built

Data model

MongoDB · schema design

One general structure with references between documents, so pages of different shapes fitted the same model as requirements changed.

Screen-shaped APIs

Node.js · Express · REST

Endpoints such as a single homepage call that return what a screen needs, in place of several parallel requests joined on the client.

Package, itinerary and booking APIs

Node.js · Express · MongoDB

REST APIs for the travel packages, their itineraries, user preferences and bookings.

API contracts

Backend and frontend teams

Contracts agreed with the frontend team and owned by the backend lead, so both sides could build in parallel.

CI/CD

Jenkins

Builds and deployments run through a Jenkins pipeline.

Team lead

2–3 backend developers

Work split across the backend team, reviewed, and kept in line with the agreed contracts.

05

The outcome

The platform met the client's requirements and ran well in production, and it went on to get major updates after the first release, which the general structure was there to make room for. The site is no longer online.

Stack

  • Node.js
  • Express
  • MongoDB
  • REST API
  • Schema Design
  • API contracts
  • Jenkins
  • CI/CD