Add cross-platform automated setup scripts with Node.js installation detection #37

Merged
Copilot merged 2 commits from copilot/add-installation-script-nodejs into main 2025-11-19 12:12:00 -06:00
Copilot commented 2025-11-19 11:14:30 -06:00 (Migrated from github.com)

Implements automated setup scripts that detect OS, verify/install Node.js/npm, run dependency installation, and optionally launch the application.

Changes

Setup Scripts

  • setup.sh - Unix/Linux/macOS with distro-specific package manager detection (apt, dnf, pacman, brew)
  • setup.bat - Windows Command Prompt with manual download fallback
  • setup.ps1 - Windows PowerShell with winget/chocolatey auto-installation support

All scripts:

  • Detect OS and verify Node.js >= 16.x
  • Install Node.js via native package managers when possible
  • Run npm install and create config.json from sample
  • Interactive prompt to launch app with npm start

Documentation

  • Updated README.md Quick Start to recommend automated setup as primary installation method
  • Preserved manual installation instructions as fallback

Usage

# Linux/macOS
./setup.sh

# Windows PowerShell
.\setup.ps1

# Windows Command Prompt
setup.bat

Each script provides colored output, error handling, and clear guidance for scenarios where automatic installation isn't possible.

Original prompt

Add a Script to do the below
Detect the Operating System (Windows, Mac, Linux)
Check if Node.JS/NPM is installed, if not, Perform the proper installation of Node.js and NPM for the operating system detected
Run NPM Install to install dependencies
Ask the user if they would like to launch the app.

Update the documentation to include this as the reccomended way to run Castroix


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Implements automated setup scripts that detect OS, verify/install Node.js/npm, run dependency installation, and optionally launch the application. ## Changes **Setup Scripts** - `setup.sh` - Unix/Linux/macOS with distro-specific package manager detection (apt, dnf, pacman, brew) - `setup.bat` - Windows Command Prompt with manual download fallback - `setup.ps1` - Windows PowerShell with winget/chocolatey auto-installation support All scripts: - Detect OS and verify Node.js >= 16.x - Install Node.js via native package managers when possible - Run `npm install` and create `config.json` from sample - Interactive prompt to launch app with `npm start` **Documentation** - Updated README.md Quick Start to recommend automated setup as primary installation method - Preserved manual installation instructions as fallback ## Usage ```bash # Linux/macOS ./setup.sh # Windows PowerShell .\setup.ps1 # Windows Command Prompt setup.bat ``` Each script provides colored output, error handling, and clear guidance for scenarios where automatic installation isn't possible. <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > Add a Script to do the below > Detect the Operating System (Windows, Mac, Linux) > Check if Node.JS/NPM is installed, if not, Perform the proper installation of Node.js and NPM for the operating system detected > Run NPM Install to install dependencies > Ask the user if they would like to launch the app. > > Update the documentation to include this as the reccomended way to run Castroix </details> <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey).
SluberskiHomeLab (Migrated from github.com) reviewed 2025-11-19 11:14:30 -06:00
Sign in to join this conversation.
No description provided.