, Mark Joseph Colibao, home
Back to projects

Projects · Taravel

How Taravel is built

Taravel is a travel app for Philippine passport holders. I use it myself for now and may share it more widely later. It is not on the app stores.

  • Personal project

Every part

The whole system

The phone talks only to the API. The data, files and AI services sit behind it, and a GitHub Actions workflow deploys it.

Follow a journey:

Overview

A phone app and one API

The Flutter app signs in with Entra External ID and talks to one ASP.NET Core API on Azure Container Apps. The data, AI and document services sit behind that API, and a GitHub Actions workflow I start by hand deploys it.

CI/CD

From commit to production

One GitHub Actions workflow takes the API from code to a running container. A stage starts only after the one before it passes.

1 · check

Checks

  • Secret scangitleaks, whole git history
  • Build and testswarnings count as errors
  • Dependency checkknown vulnerabilities in packages
2 · build

Image

  • Build the containerDockerfile linted first
  • Image scanTrivy, serious issues stop the build
  • Publishtagged by commit, never "latest"
3 · deploy

Deploy

  • Passwordless sign-inOIDC to Azure, no stored secret
  • Deploy the exact imageto Azure Container Apps
  • Smoke testchecks the new build answers
  • Automatic rollbackthe previous version comes back on failure

Dependabot keeps dependencies up to date.

Run by hand. I start the workflow myself, which keeps it inside the free build minutes.

The mobile app is built on my own machine for now, so the workflow deploys only the backend.

Least privilege

Who can do what

Every identity gets only the roles it needs, on a single resource. There are no passwords or keys for these in the code or in GitHub.

WhoRoleWhereWhy that is enough
The API managed identityCosmos DB Built-in Data ContributorThe database account onlyReads and writes data, but can't change the account. Key sign-in is turned off.
Storage Blob Data ContributorThe storage account onlyReads and writes files. Shared keys and public access are off, and a file opens only through a short-lived, read-only link.
Foundry UserThe Foundry resource onlyUses the model, but can't manage the resource.
Cognitive Services UserDocument Intelligence onlySends documents to be read, but can't change the service.
User.DeleteRestore.AllMicrosoft GraphThe sign-in directoryRemoves a sign-in account when its owner deletes their account. Trusted through a federated credential, with no secret.
GitHub deploy OIDC, no secretContributor + ReaderContributor on the one container app, Reader on its environmentCan update the API and nothing else. Azure trusts only the main branch of this repo.
Workflow token contents: readThis repoRead-only by default. A job asks for more only where it needs it, such as publishing the image or signing in to Azure.

One exception: the Translator service still uses an API key. It is kept out of the code, as a secret.

AI-assisted development

Built with Claude Code

Claude Code is my AI coding assistant on Taravel; the product and the architecture decisions are mine. Every session starts from the same rules in the repo, builds one small piece, and ends with passing tests and updated docs for me to review.

repo setup: How the repo is set up for Claude Code
taravel/
├─ CLAUDE.md                rules for every session
├─ mobile/CLAUDE.md         app rules, loaded only there
├─ backend/CLAUDE.md        API rules, loaded only there
├─ .claude/
│  ├─ skills/               9 repeatable workflows
│  ├─ hooks/                blocks edits to the tickets
│  └─ settings.json         allowed and blocked commands
└─ docs/
   ├─ taravel-tickets/      source of truth, read-only
   ├─ module-log/           what each session built, and why
   ├─ requirements/         one file per spec
   └─ claude-code-prompts/  a session prompt per module

One module per session

  1. /plan-moduleTurns a ticket into a session prompt with a clear scope.
  2. /run-moduleBuilds that module in a fresh session, following the CLAUDE.md rules.
  3. /finish-moduleTests must pass and every affected doc is updated, with step-by-step notes for testing on my phone.
  4. /review-moduleChecks the work against the ticket, the rules and a security checklist.
  5. I test and mergeI test on my own phone, then merge and deploy myself. Claude Code never merges.

Guardrails

  • Force pushes and hard resets are blocked in the settings.
  • A hook stops any edit to the tickets, so the plan can't drift.
  • Each big doc has a short index, so a session reads only what it needs.
  • Where the build differs from a ticket, it is written down, not hidden.

Choices behind it

Why it is built this way

Low running cost

The API scales to zero when nobody uses it, and the database and document reading run on free tiers.

No keys to leak

The API signs in to Azure services with its managed identity, and deploys use OIDC. No Azure passwords sit in the code or in GitHub.

Works offline

Data lives on the phone first, encrypted, and syncs when there is a connection.

Taravel is a personal project, in personal use and still being built. The code is in a private repo.

Built with Claude Code as my AI coding assistant. The product, the architecture and the decisions are mine.