Aan de slag
Lokale setup
De volledige stack op je machine draaiend krijgen.
git clone https://github.com/robbeverhelst/routess.git
cd routess
bun install
cp .env.example .env
bun run devbun run dev doet het volgende:
- Installeert de dependencies als
node_modulesontbreekt - Kiest vrije lokale poorten voor de API, docs, webapp, landing, Postgres en pgAdmin
- Start een Postgres-container
- Start pgAdmin
- Bouwt alle
packages/*(zodat de apps ze kunnen importeren) - Draait elke
apps/*parallel in dev-modus
Als een standaardpoort al in gebruik is, kiest bun run dev automatisch de volgende vrije lokale poort.
Aangepaste, niet-standaard poortwaarden in .env worden behandeld als expliciete overrides.
Je zou dit moeten zien:
- Web: http://localhost:5173
- API: http://localhost:3000
- Docs: http://localhost:3001 (deze site)
- Landing: http://localhost:3002
- pgAdmin: http://localhost:5050 (of de
PGADMIN_PORTuit je root-.env)
Omgevingsvariabelen
De repo gebruikt een gedeelde root-.env. Kopieer en vul in:
cp .env.example .envVerplichte waarden:
VITE_MAPBOX_ACCESS_TOKEN: haal er een op via mapbox.comVITE_GOOGLE_CLIENT_ID/GOOGLE_CLIENT_ID: uit de Google Cloud ConsoleGOOGLE_CLIENT_SECRET: uit de Google Cloud Console (gebruikt door de API om auth-codes in te wisselen)JWT_SECRET: een willekeurige string voor lokale ontwikkeling
Optionele overrides voor lokale poorten:
PORT: API-poort, standaard3000DOCS_PORT: docs-poort, standaard3001WEB_PORT: web-poort, standaard5173LANDING_PORT: landing-poort, standaard3002DB_PORT: wijzig dit als5432al in gebruik isPGADMIN_PORT: wijzig dit als5050al in gebruik is
Handige scripts
bun run lint:check # bun lint + Biome across the repo
bun run check-types # TypeScript across all workspaces
bun run test # Run the test suite
bun run build # Build everything (packages first, then apps)
bun run ci # Run the full CI pipeline locally