Skip to content

๐Ÿš€ NextJS Setup Guide 2025 โ€‹

Welcome to your NextJS development journey! This guide walks you through setting up a professional NextJS environment on Windows, Linux, and macOS.

๐Ÿ’ป Minimum Hardware Requirements โ€‹

WARNING

Purpose: Ensure your system can run modern web development tools smoothly.

  • ๐Ÿ”ฒ Processor: Intel Core i5/AMD Ryzen 5/Apple M1 or better
  • ๐Ÿงฎ RAM: 8GB minimum (16GB recommended)
  • ๐Ÿ’พ Storage: 256GB SSD (or faster)
  • ๐Ÿ–ฅ๏ธ Display: 1920x1080 resolution or higher
  • ๐ŸŒ Internet: Broadband connection for package installations and updates

โš ๏ธ Insufficient hardware may slow down build times and development tasks.

๐Ÿ› ๏ธ VS Code Setup โ€‹

Purpose: VS Code offers a lightweight yet powerful IDE for NextJS development.

๐Ÿ“ฅ Installation Steps โ€‹

  1. Download Visual Studio Code
  2. Install:
    • Windows: Add "Open with Code" to Explorer context menu; add to PATH.
    • Linux: Install via your package (deb, rpm, or snap) and ensure it's in PATH.
    • macOS: Drag to Applications; run Cmd+Shift+P and type โ€œShell Command: Installโ€ to add code to PATH.
  3. โœ… Verify:
    bash
    code --version

๐ŸŒŸ GitHub Account & Git Setup โ€‹

GitHub Account โ€‹

  1. ๐Ÿ”— Visit GitHub Signup
  2. ๐Ÿ“ Complete your profile and verify your email.

Git Installation โ€‹

๐ŸชŸ Windows: โ€‹

  1. Download Git for Windows
  2. Install with default settings:
    • Use Git from Git Bash/Command Prompt
    • Set the initial branch to main
    • Enable Git Credential Manager

๐Ÿง Linux (Ubuntu/Debian): โ€‹

bash
sudo apt update
sudo apt install git

๐ŸŽ macOS: โ€‹

bash
brew install git

๐Ÿ”„ Configure Git โ€‹

bash
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"

๐Ÿ” SSH Key Setup โ€‹

WARNING

๐Ÿ›ก๏ธ Security Steps โ€‹

  1. Generate SSH Key:
    bash
    ssh-keygen -t ed25519 -C "your.email@example.com"
  2. Start SSH Agent:
    • Windows:
      bash
      eval $(ssh-agent -s)
      ssh-add C:\Users\YourUsername\.ssh\id_ed25519
    • Linux/macOS:
      bash
      eval "$(ssh-agent -s)"
      ssh-add ~/.ssh/id_ed25519
  3. Copy Key to Clipboard:
    • Windows:
      bash
      clip < C:\Users\YourUsername\.ssh\id_ed25519.pub
    • Linux:
      bash
      cat ~/.ssh/id_ed25519.pub | xclip -selection clipboard
    • macOS:
      bash
      pbcopy < ~/.ssh/id_ed25519.pub
  4. Add to GitHub:
    Go to GitHub Settings โ†’ SSH Keys โ†’ New SSH Key and paste your key.

โšก Node.js & NextJS Setup โ€‹

๐Ÿ“ฅ Install Node.js โ€‹

Choose one of these methods:

  • Official Installer: Download from nodejs.org
  • Using NVM (recommended):
    bash
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
    nvm install --lts
    nvm use --lts

๐Ÿ—๏ธ Create a New NextJS App โ€‹

  1. Scaffold the Project:
    bash
    npx create-next-app@latest my-nextjs-app
  2. Navigate & Start Development:
    bash
    cd my-nextjs-app
    npm run dev
    The app runs at http://localhost:3000.

๐Ÿ”„ Project Structure โ€‹

Your project includes:

  • pages/: Routes and view components.
  • public/: Static assets.
  • styles/: CSS and global styles.
  • next.config.js: Configuration.

๐Ÿงฉ VS Code Extensions for NextJS โ€‹

๐Ÿ› ๏ธ Essential Extensions โ€‹

ExtensionPurposeLink
๐Ÿ“ ESLintLinting for JavaScript/TypeScriptInstall
โœจ PrettierCode formatterInstall
๐ŸŒ Tailwind CSS IntelliSenseAutocompletion for Tailwind CSSInstall
๐Ÿ‘๏ธ GitLensEnhanced Git capabilitiesInstall
๐Ÿ“˜ Markdown All in OneMarkdown editing supportInstall

โšก Quick Install Command โ€‹

bash
code --install-extension dbaeumer.vscode-eslint && \
code --install-extension esbenp.prettier-vscode && \
code --install-extension bradlc.vscode-tailwindcss && \
code --install-extension eamodio.gitlens && \
code --install-extension yzhang.markdown-all-in-one && \

โš™๏ธ VS Code Configuration for NextJS โ€‹

  1. Open Settings JSON:
    • Windows/Linux: Ctrl+Shift+P
    • macOS: Cmd+Shift+P
    • Type โ€œPreferences: Open User Settings (JSON)โ€
  2. Apply Settings:
    json
    {
      "editor.formatOnSave": true,
      "editor.defaultFormatter": "esbenp.prettier-vscode",
      "files.trimTrailingWhitespace": true,
      "files.insertFinalNewline": true,
      "terminal.integrated.shellArgs.linux": ["-l"],
      "eslint.format.enable": true,
      "javascript.validate.enable": false,
      "typescript.validate.enable": false
    }

โœ… Verification โ€‹

๐Ÿ” Check Installation โ€‹

bash
# Node.js
node --version  # Should show the installed version

# NextJS App
cd my-nextjs-app
npm run dev    # Verify app runs at http://localhost:3000

# Git
git --version

# SSH (to GitHub)
ssh -T git@github.com  # Should confirm your SSH connection

๐ŸŽ‰ Conclusion โ€‹

You now have a complete NextJS development environment set up