Skip to content

Project Bootstrap — Monorepo, CI, Dev Environment #1

Description

@ggondim

Summary

Initialize the monorepo structure and development infrastructure. This is the foundation for all other work.

Tasks

Monorepo Setup

  • Initialize Bun workspace at the root
  • Configure root package.json with workspaces: packages/core, packages/storage/mongodb, packages/channels, packages/server, packages/trust
  • Add shared tsconfig.json (base) with per-package extends
  • Configure Vite as the build tool for library packages (core, storage/*, channels, trust)
  • Add ESLint + Prettier with shared config
  • Add root scripts for common tasks (dev, build, test, lint)

CI / Quality Gates

  • GitHub Actions workflow: lint, typecheck, test on push/PR
  • Pre-commit hook: lint-staged + typecheck

Development Environment

  • Docker Compose for local dependencies (MongoDB)
  • .env.example with documented variables
  • Seed script for development data (sample channels, routes, threads)

Acceptance Criteria

  • bun install from root installs all workspace dependencies
  • bun run build builds all packages
  • bun run test runs tests across all packages (empty suites OK)
  • bun run lint passes
  • CI runs on push and PR
  • docker compose up starts MongoDB

Dependencies

None — this is the first issue.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions