From f1fed515029ebdc7e29a976fd84b4e84cb0b5f03 Mon Sep 17 00:00:00 2001 From: Anwarul Islam Date: Wed, 16 Jul 2025 04:41:31 +0600 Subject: [PATCH] docs: update setup instructions to include environment file copying steps --- .github/CONTRIBUTING.md | 18 ++++++++++++++++-- README.md | 18 ++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 4db3ad02..cf46f6a5 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -7,8 +7,22 @@ Thank you for your interest in contributing to OpenCut! This document provides g 1. Fork the repository 2. Clone your fork locally 3. Navigate to the web app directory: `cd apps/web` -4. Install dependencies: `bun install` -5. Start the development server: `bun run dev` +4. Copy `.env.example` to `.env.local`: + + ```bash + # Unix/Linux/Mac + cp .env.example .env.local + + # Windows Command Prompt + copy .env.example .env.local + + # Windows PowerShell + Copy-Item .env.example .env.local + ``` + +5. Install dependencies: `bun install` + +6. Start the development server: `bun run dev` > **Note:** If you see an error like `Unsupported URL Type "workspace:*"` when running `npm install`, you have two options: > diff --git a/README.md b/README.md index 2f613c89..c352bd91 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,22 @@ If you're working on the UI/frontend and don't need authentication or database f 1. Fork the repository 2. Clone your fork locally 3. Navigate to the web app directory: `cd apps/web` -4. Install dependencies: `bun install` -5. Start the development server: `bun dev` +4. Copy `.env.example` to `.env.local`: + + ```bash + # Unix/Linux/Mac + cp .env.example .env.local + + # Windows Command Prompt + copy .env.example .env.local + + # Windows PowerShell + Copy-Item .env.example .env.local + ``` + +5. Install dependencies: `bun install` + +6. Start the development server: `bun dev` The application will be available at [http://localhost:3000](http://localhost:3000).