Fix local development instructions to use pnpm

Closes #35
This commit is contained in:
Chris Scott committed 2025-12-29 23:19:05 -05:00
1 parent b88d8a4bf3
commit 614c6ebce8
2 files changed
+30 -22

No files matched your search

+11 -4
View File
@@ -189,21 +189,28 @@ OpenCode Manager creates a default `AGENTS.md` file in the workspace config dire
This file is merged with any repository-specific `AGENTS.md` files, with repository instructions taking precedence for their respective codebases.
### Option 2: Local Development
### Option 2: Local Development (Contributors)
For contributors who want to develop locally instead of using Docker.
**Prerequisites:**
- [pnpm](https://pnpm.io/installation) - Package manager (required for workspaces)
- [Bun](https://bun.sh) - Backend runtime
- [OpenCode TUI](https://opencode.ai) - `npm install -g @opencode/tui`
```bash
# Clone the repository
git clone https://github.com/chriswritescode-dev/opencode-manager.git
cd opencode-manager
# Install dependencies (uses Bun workspaces)
bun install
# Install dependencies (uses pnpm workspaces)
pnpm install
# Copy environment configuration
cp .env.example .env
# Start development servers (backend + frontend)
npm run dev
pnpm dev
```
## OAuth Provider Setup
+19 -18
View File
@@ -4,18 +4,23 @@ set -e
echo "🔍 Checking prerequisites..."
# Check if Node.js/Bun is installed
if command -v bun &> /dev/null; then
echo "✅ Bun is installed"
NODE_CMD="bun"
elif command -v node &> /dev/null; then
echo "✅ Node.js is installed"
NODE_CMD="node"
else
echo "❌ Neither Bun nor Node.js is installed. Please install one of them."
# Check if pnpm is installed (required for workspaces)
if ! command -v pnpm &> /dev/null; then
echo "❌ pnpm is not installed. Please install it with:"
echo " npm install -g pnpm"
exit 1
fi
echo "✅ pnpm is installed"
# Check if Bun is installed (required for backend)
if ! command -v bun &> /dev/null; then
echo "❌ Bun is not installed. Please install it from https://bun.sh"
exit 1
fi
echo "✅ Bun is installed"
# Check if Git is installed
if ! git --version &> /dev/null; then
echo "❌ Git is not installed. Please install Git and try again."
@@ -46,13 +51,9 @@ else
echo "✅ Workspace directory exists"
fi
# Install dependencies
# Install dependencies using pnpm (handles workspaces)
echo "📦 Installing dependencies..."
if [ "$NODE_CMD" = "bun" ]; then
bun install
else
npm install
fi
pnpm install
echo "✅ Dependencies installed"
@@ -68,6 +69,6 @@ fi
echo "✅ Dev environment ready!"
echo ""
echo "🚀 To start development:"
echo " npm run dev # Start both backend and frontend"
echo " npm run dev:backend # Start backend only"
echo " npm run dev:frontend # Start frontend only"
echo " pnpm dev # Start both backend and frontend"
echo " pnpm dev:backend # Start backend only"
echo " pnpm dev:frontend # Start frontend only"