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:
- run web + API against local Postgres;
- know where user vs developer docs live;
- update docs in the same change set when behavior changes.
1. Prerequisites
- Node.js and
pnpmas 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 setupmake setup installs dependencies, creates .env from .env.example, starts
Postgres when needed, migrates, and seeds.
3. Run the product locally
make dev- Web: http://localhost:5170
- API: http://localhost:8780
Sign in with a seeded or newly registered account and open a trip.
4. Preview documentation
make dev-docsOpen http://localhost:5171 — choose User guide or Developer docs.
5. Make a small change safely
- Prefer the layer that owns the behavior (
apps/webFSD slice orapps/apiuse case + port). - If you change product behavior, architecture, configuration, or HTTP
contracts, update the matching page under
docs/in the same change set. - Keep user workflows in
docs/user/; keep implementation detail in developer sections. - Never commit secrets or environment-specific production endpoints.
6. Verify before you open a PR
pnpm docs:check
pnpm --filter @opentrip/docs typecheck
make checkNext reading
- ../CONTRIBUTING.md — documentation audience rules
- ../operations/README.md — day-to-day commands
- ../backend/trip-ops.md — add a trip mutation once
- architecture.md — system topology