OpenTrip Docs
Project

Contributor tutorial

Clone OpenTrip, run it locally, and land a small documentation-safe change.

Contributor tutorial

This lesson gets a new contributor from an empty machine to a running local stack and a first change that respects OpenTrip’s documentation rules.

Outcome

By the end you will:

  1. run web + API against local Postgres;
  2. know where user vs developer docs live;
  3. update docs in the same change set when behavior changes.

1. Prerequisites

  • Node.js and pnpm as required by the repo
  • Docker (for local Postgres)
  • Git

2. Set up the monorepo

git clone https://github.com/stvlynn/OpenTrip.git
cd OpenTrip
make setup

make setup installs dependencies, creates .env from .env.example, starts Postgres when needed, migrates, and seeds.

3. Run the product locally

make dev

Sign in with a seeded or newly registered account and open a trip.

4. Preview documentation

make dev-docs

Open http://localhost:5171 — choose User guide or Developer docs.

5. Make a small change safely

  1. Prefer the layer that owns the behavior (apps/web FSD slice or apps/api use case + port).
  2. If you change product behavior, architecture, configuration, or HTTP contracts, update the matching page under docs/ in the same change set.
  3. Keep user workflows in docs/user/; keep implementation detail in developer sections.
  4. Never commit secrets or environment-specific production endpoints.

6. Verify before you open a PR

pnpm docs:check
pnpm --filter @opentrip/docs typecheck
make check

Next reading

On this page