Installation
Install and run the WorkSight monorepo (pnpm + Turbo).
Prerequisites
- Node.js 18+ (20+ recommended)
- pnpm 9+ (lockfile expects pnpm 10 — see root
packageManager) - Git
- Optional: Docker / Docker Compose for the Nest API
Native (recommended for development)
Clone
bashgit clone https://github.com/4sightorg/worksight.git cd worksightInstall
bashcorepack enable pnpm installWeb env
bashcp apps/web/env.example apps/web/.env.localEdit
apps/web/.env.local. For fixture / offline MVP work:bashNEXT_PUBLIC_IS_OFFLINE=true IS_OFFLINE=trueThere is no root
.env.example, nopnpm db:migrate/pnpm db:seed, and no NextAuth-required setup for the MVP slice.Build shared package
bashpnpm --filter @worksight/common buildStart apps
bashpnpm dev:web # :3000 pnpm dev:docs # VitePress PORT=3123 pnpm --filter @worksight/api dev # Nest
Docker Compose
From the repo root (API-oriented path; see docker-compose.yml):
docker compose up -d --buildPrefer this for a running Nest API. The Vercel API project builds dist/ but does not yet expose a serverless handler.
Production builds (local)
pnpm --filter @worksight/common build
pnpm --filter @worksight/web build
pnpm --filter @worksight/api build
pnpm --filter @worksight/docs buildOr pnpm build via Turbo.
Vercel (hosted)
WorkSight uses three Vercel projects with per-app Root Directories — not a single root vercel.json:
| Project | Root Directory |
|---|---|
worksight | apps/web |
worksight-api | apps/api |
worksight-docs | apps/docs |
Details: Deployment and repo doc/DEPLOYMENT.md.
Troubleshooting
Port 3000 in use
PORT=3001 pnpm --filter @worksight/web dev
# or free the port, then retryEmpty / stale @worksight/common
pnpm --filter @worksight/common buildReinstall
pnpm clean
rm -rf node_modules
pnpm installDo not delete pnpm-lock.yaml unless you intend to regenerate the lockfile.
