Skip to content

Bootstrap monorepo: Bun + Hono backend, Next.js frontend, Doppler secrets#29

Merged
sortakool merged 8 commits intomainfrom
feat/bootstrap-monorepo
Feb 26, 2026
Merged

Bootstrap monorepo: Bun + Hono backend, Next.js frontend, Doppler secrets#29
sortakool merged 8 commits intomainfrom
feat/bootstrap-monorepo

Conversation

@sortakool
Copy link
Copy Markdown
Contributor

Closes #26

Summary

Scaffolds the full monorepo with two workspaces (apps/api and apps/web), wired to Doppler for secrets management.

Monorepo structure

  • Root package.json with workspaces: ["apps/*"] and concurrent dev script
  • Shared tsconfig.base.json with TypeScript strict mode
  • .gitignore covering node_modules, .env*, dist/, .next/, *.db

Backend (apps/api)

  • Bun + Hono app with GET /health returning { status: "ok" }
  • Project structure: src/index.ts, src/routes/, src/services/, src/db/, src/lib/
  • bun run dev starts with --hot reload on port 4000
  • CORS configured to allow frontend origin (http://localhost:3000)

Frontend (apps/web)

  • Next.js App Router with Tailwind CSS (v4 + @tailwindcss/postcss)
  • React Query provider wired up in root layout
  • Sidebar nav with links: Dashboard, Tours, Riders, Settings
  • Placeholder pages for each nav item
  • API client utility reading NEXT_PUBLIC_API_URL from env

Doppler integration

  • doppler.yaml pointing to virtual-agent project / dev config
  • .env.example documenting all 7 expected env vars
  • README documents doppler run -- bun run dev workflow
  • Backend reads secrets via process.env (Doppler injects at runtime)

Dev experience

  • Root bun run dev starts both apps concurrently
  • Comprehensive README with prerequisites, Doppler setup, and local dev instructions

Tests

  • 58 tests across 4 files — all passing
    • Monorepo structure verification (53 tests)
    • Health endpoint tests
    • CORS middleware tests
    • App module export tests
  • Gherkin feature specs in specs/features/bootstrap-monorepo.feature

Ray Manaloto and others added 8 commits February 25, 2026 15:42
- 22 scenarios covering all 20 acceptance criteria checkboxes
- Organized by section: monorepo structure, backend, frontend, Doppler, dev experience
- Feature file: specs/features/bootstrap-monorepo.feature
…#26

Closes coverage gap for acceptance criterion: Backend reads secrets
via process.env (Doppler injects at runtime). Feature file now has
24 scenarios covering all 20 acceptance criteria checkboxes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sortakool sortakool merged commit c21f2d4 into main Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bootstrap monorepo: Bun + Hono backend, Next.js frontend, Doppler secrets

1 participant