Environment Setup Guide
Overview
Help developers set up complete development environments from scratch. This skill provides step-by-step guidance for installing tools, configuring dependencies, setting up environment variables, and verifying the setup works correctly.
When to Use This Skill
- Use when starting a new project and need to set up the development environment
- Use when onboarding new team members to a project
- Use when switching to a new machine or operating system
- Use when troubleshooting environment-related issues
- Use when documenting setup instructions for a project
- Use when creating development environment documentation
How It Works
Step 1: Identify Requirements
I'll help you determine what needs to be installed:
- Programming language and version (Node.js, Python, Go, etc.)
- Package managers (npm, pip, cargo, etc.)
- Database systems (PostgreSQL, MongoDB, Redis, etc.)
- Development tools (Git, Docker, IDE extensions, etc.)
- Environment variables and configuration files
Step 2: Check Current Setup
Before installing anything, I'll help you check what's already installed:
# Check versions of installed tools
node --version
python --version
git --version
docker --version
Step 3: Provide Installation Instructions
I'll give platform-specific installation commands:
- macOS: Using Homebrew
- Linux: Using apt, yum, or package manager
- Windows: Using Chocolatey, Scoop, or direct installers
Step 4: Configure the Environment
Help set up:
- Environment variables (.env files)
- Configuration files (.gitconfig, .npmrc, etc.)
- IDE settings (VS Code, IntelliJ, etc.)
- Shell configuration (.bashrc, .zshrc, etc.)
Step 5: Verify Installation
Provide verification steps to ensure everything works:
- Run version checks
- Test basic commands
- Verify database connections
- Check environment variables are loaded
Examples
Example 1: Node.js Project Setup
## Setting Up Node.js Development Environment
### Prerequisites
- macOS, Linux, or Windows
- Terminal/Command Prompt access
- Internet connection
### Step 1: Install Node.js
**macOS (using Homebrew):**
\`\`\`bash
# Install Homebrew if not installed
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
curl -fsSLo "$tmpdir/homebrew-install.sh" https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
cat "$tmpdir/homebrew-install.sh" # review the full installer before executing
/bin/bash "$tmpdir/homebrew-install.sh"
# Install Node.js
brew install node
\`\`\`
**Linux (Ubuntu/Debian):**
\`\`\`bash
# Update package list
sudo apt update
# Install Node.js and npm
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
curl -fsSLo "$tmpdir/nodesource-setup.sh" https://deb.nodesource.com/setup_20.x
cat "$tmpdir/nodesource-setup.sh" # review the full installer before sudo
sudo -E bash "$tmpdir/nodesource-setup.sh"
sudo apt install -y nodejs
\`\`\`
**Windows (using winget):**
\`\`\`powershell
# Install Node.js
winget install OpenJS.NodeJS.LTS
\`\`\`
### Step 2: Verify Installation
\`\`\`bash
node --version # Should show v20.x.x or higher
npm --version # Should show 10.x.x or higher
\`\`\`
### Step 3: Install Project Dependencies
\`\`\`bash
# Clone the repository
git clone https://github.com/your-repo/project.git
cd project
# Install dependencies
npm install
\`\`\`
### Step 4: Set Up Environment Variables
Create a \`.env\` file:
\`\`\`bash
# Copy example environment file
cp .env.example .env
# Edit with your values
nano .env
\`\`\`
Example \`.env\` content:
\`\`\`
NODE_ENV=development
PORT=3000
DATABASE_URL=postgresql://localhost:5432/mydb
API_KEY=your-api-key-here
\`\`\`
### Step 5: Run the Project
\`\`\`bash
# Start development server
npm run dev
# Should see: Server running on http://localhost:3000
\`\`\`
### Troubleshooting
**Problem:** "node: command not found"
**Solution:** Restart your terminal or run \`source ~/.bashrc\` (Linux) or \`source ~/.zshrc\` (macOS)
**Problem:** "Permission denied" errors
**Solution:** Don't use sudo with npm. Fix permissions:
\`\`\`bash
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
\`\`\`
Example 2: Python Project Setup
## Setting Up Python Development Environment
### Step 1: Install Python
**macOS:**
\`\`\`bash
brew install python@3.11
\`\`\`
**Linux:**
\`\`\`bash
sudo apt update
sudo apt install python3.11 python3.11-venv python3-pip
\`\`\`
**Windows:**
\`\`\`powershell
choco install python --version=3.11
\`\`\`
### Step 2: Verify Installation
\`\`\`bash
python3 --version # Should show Python 3.11.x
pip3 --version # Should show pip 23.x.x
\`\`\`
### Step 3: Create Virtual Environment
\`\`\`bash
# Navigate to project directory
cd my-project
# Create virtual environment
python3 -m venv venv
# Activate virtual environment
# macOS/Linux:
source venv/bin/activate
# Windows:
venv\Scripts\activat
1---2name: environment-setup-guide3description: Guide developers through setting up development environments with proper tools, dependencies, and configurations 4category: Document Processing5source: antigravity6tags: [python, node, markdown, api, ai, template, document, image, docker, cro]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/environment-setup-guide8metadata:9 source: https://skillmd.com/skills/sickn33/environment-setup-guide10---111213# Environment Setup Guide1415## Overview1617Help developers set up complete development environments from scratch. This skill provides step-by-step guidance for installing tools, configuring dependencies, setting up environment variables, and verifying the setup works correctly.1819## When to Use This Skill2021- Use when starting a new project and need to set up the development environment22- Use when onboarding new team members to a project23- Use when switching to a new machine or operating system24- Use when troubleshooting environment-related issues25- Use when documenting setup instructions for a project26- Use when creating development environment documentation2728## How It Works2930### Step 1: Identify Requirements3132I'll help you determine what needs to be installed:33- Programming language and version (Node.js, Python, Go, etc.)34- Package managers (npm, pip, cargo, etc.)35- Database systems (PostgreSQL, MongoDB, Redis, etc.)36- Development tools (Git, Docker, IDE extensions, etc.)37- Environment variables and configuration files3839### Step 2: Check Current Setup4041Before installing anything, I'll help you check what's already installed:42```bash43# Check versions of installed tools44node --version45python --version46git --version47docker --version48```4950### Step 3: Provide Installation Instructions5152I'll give platform-specific installation commands:53- **macOS:** Using Homebrew54- **Linux:** Using apt, yum, or package manager55- **Windows:** Using Chocolatey, Scoop, or direct installers5657### Step 4: Configure the Environment5859Help set up:60- Environment variables (.env files)61- Configuration files (.gitconfig, .npmrc, etc.)62- IDE settings (VS Code, IntelliJ, etc.)63- Shell configuration (.bashrc, .zshrc, etc.)6465### Step 5: Verify Installation6667Provide verification steps to ensure everything works:68- Run version checks69- Test basic commands70- Verify database connections71- Check environment variables are loaded7273## Examples7475### Example 1: Node.js Project Setup7677```markdown78## Setting Up Node.js Development Environment7980### Prerequisites81- macOS, Linux, or Windows82- Terminal/Command Prompt access83- Internet connection8485### Step 1: Install Node.js8687**macOS (using Homebrew):**88\`\`\`bash89# Install Homebrew if not installed90tmpdir="$(mktemp -d)"91trap 'rm -rf "$tmpdir"' EXIT92curl -fsSLo "$tmpdir/homebrew-install.sh" https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh93cat "$tmpdir/homebrew-install.sh" # review the full installer before executing94/bin/bash "$tmpdir/homebrew-install.sh"9596# Install Node.js97brew install node98\`\`\`99100**Linux (Ubuntu/Debian):**101\`\`\`bash102# Update package list103sudo apt update104105# Install Node.js and npm106tmpdir="$(mktemp -d)"107trap 'rm -rf "$tmpdir"' EXIT108curl -fsSLo "$tmpdir/nodesource-setup.sh" https://deb.nodesource.com/setup_20.x109cat "$tmpdir/nodesource-setup.sh" # review the full installer before sudo110sudo -E bash "$tmpdir/nodesource-setup.sh"111sudo apt install -y nodejs112\`\`\`113114**Windows (using winget):**115\`\`\`powershell116# Install Node.js117winget install OpenJS.NodeJS.LTS118\`\`\`119120### Step 2: Verify Installation121122\`\`\`bash123node --version # Should show v20.x.x or higher124npm --version # Should show 10.x.x or higher125\`\`\`126127### Step 3: Install Project Dependencies128129\`\`\`bash130# Clone the repository131git clone https://github.com/your-repo/project.git132cd project133134# Install dependencies135npm install136\`\`\`137138### Step 4: Set Up Environment Variables139140Create a \`.env\` file:141\`\`\`bash142# Copy example environment file143cp .env.example .env144145# Edit with your values146nano .env147\`\`\`148149Example \`.env\` content:150\`\`\`151NODE_ENV=development152PORT=3000153DATABASE_URL=postgresql://localhost:5432/mydb154API_KEY=your-api-key-here155\`\`\`156157### Step 5: Run the Project158159\`\`\`bash160# Start development server161npm run dev162163# Should see: Server running on http://localhost:3000164\`\`\`165166### Troubleshooting167168**Problem:** "node: command not found"169**Solution:** Restart your terminal or run \`source ~/.bashrc\` (Linux) or \`source ~/.zshrc\` (macOS)170171**Problem:** "Permission denied" errors172**Solution:** Don't use sudo with npm. Fix permissions:173\`\`\`bash174mkdir ~/.npm-global175npm config set prefix '~/.npm-global'176echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc177source ~/.bashrc178\`\`\`179```180181### Example 2: Python Project Setup182183```markdown184## Setting Up Python Development Environment185186### Step 1: Install Python187188**macOS:**189\`\`\`bash190brew install python@3.11191\`\`\`192193**Linux:**194\`\`\`bash195sudo apt update196sudo apt install python3.11 python3.11-venv python3-pip197\`\`\`198199**Windows:**200\`\`\`powershell201choco install python --version=3.11202\`\`\`203204### Step 2: Verify Installation205206\`\`\`bash207python3 --version # Should show Python 3.11.x208pip3 --version # Should show pip 23.x.x209\`\`\`210211### Step 3: Create Virtual Environment212213\`\`\`bash214# Navigate to project directory215cd my-project216217# Create virtual environment218python3 -m venv venv219220# Activate virtual environment221# macOS/Linux:222source venv/bin/activate223224# Windows:225venv\Scripts\activat