@@ -8,7 +8,23 @@ This guide will help you set up MyCoder on macOS.
88
99## Prerequisites
1010
11- 1 . ** Node.js** : Install Node.js version 20.0.0 or higher
11+ 1 . ** Homebrew** : The recommended package manager for macOS
12+
13+ Homebrew makes it easy to install and manage development tools on macOS. Installing it first will simplify the rest of the setup process.
14+
15+ ``` bash
16+ # Install Homebrew
17+ /bin/bash -c " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh) "
18+
19+ # Make sure Homebrew is in your PATH
20+ echo ' eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~ /.zprofile
21+ eval " $( /opt/homebrew/bin/brew shellenv) "
22+
23+ # Verify installation
24+ brew --version
25+ ```
26+
27+ 2 . ** Node.js** : Install Node.js version 20.0.0 or higher
1228
1329 > ** ⚠️ Important:** MyCoder requires Node.js runtime to function properly.
1430
@@ -17,11 +33,19 @@ This guide will help you set up MyCoder on macOS.
1733 NVM is the preferred way to install Node.js as it allows for easy version management and avoids permission issues:
1834
1935 ``` bash
20- # Install NVM
21- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
36+ # Install NVM using Homebrew
37+ brew install nvm
38+
39+ # Create NVM directory
40+ mkdir ~ /.nvm
41+
42+ # Add NVM configuration to your shell profile
43+ echo ' export NVM_DIR="$HOME/.nvm"' >> ~ /.zshrc
44+ echo ' [ -s "$(brew --prefix)/opt/nvm/nvm.sh" ] && \. "$(brew --prefix)/opt/nvm/nvm.sh"' >> ~ /.zshrc
45+ echo ' [ -s "$(brew --prefix)/opt/nvm/etc/bash_completion.d/nvm" ] && \. "$(brew --prefix)/opt/nvm/etc/bash_completion.d/nvm"' >> ~ /.zshrc
2246
2347 # Reload shell configuration
24- source ~ /.zshrc # or source ~/.bash_profile for older macOS versions
48+ source ~ /.zshrc
2549
2650 # Install latest LTS version of Node.js
2751 nvm install --lts
@@ -33,7 +57,7 @@ This guide will help you set up MyCoder on macOS.
3357 node --version
3458 ```
3559
36- ** Alternative: Using Homebrew:**
60+ ** Alternative: Direct Homebrew installation :**
3761 ``` bash
3862 brew install node
3963 ```
@@ -43,9 +67,48 @@ This guide will help you set up MyCoder on macOS.
4367
4468 Verify installation with ` node --version `
4569
46- 2 . ** Git** : macOS typically comes with Git pre-installed
47- - Verify with ` git --version `
48- - If not installed: ` brew install git `
70+ 3 . ** Git** : Version control system
71+ ``` bash
72+ # Install Git using Homebrew
73+ brew install git
74+
75+ # Verify installation
76+ git --version
77+ ```
78+
79+ 4 . ** GitHub CLI** : Command-line tool for interacting with GitHub
80+ ``` bash
81+ # Install GitHub CLI using Homebrew
82+ brew install gh
83+
84+ # Verify installation
85+ gh --version
86+
87+ # Authenticate with GitHub
88+ gh auth login
89+ ```
90+
91+ The GitHub CLI makes it easy to:
92+ - Create and manage issues
93+ - Create and review pull requests
94+ - Clone repositories
95+ - Manage GitHub workflows
96+
97+ This is especially useful if you plan to contribute to MyCoder or related projects.
98+
99+ ** Enable GitHub Mode in MyCoder** :
100+
101+ After installing the GitHub CLI, enable GitHub mode in MyCoder for enhanced GitHub integration:
102+
103+ ``` bash
104+ # Enable GitHub mode
105+ mycoder config set githubMode true
106+
107+ # Verify configuration
108+ mycoder config get githubMode
109+ ```
110+
111+ With GitHub mode enabled, MyCoder can create issues, branches, and pull requests directly through the GitHub CLI.
49112
50113## Installation
51114
0 commit comments